Skip to content

Commit

Permalink
Improved example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ennio Wolsink authored Mar 29, 2017
1 parent b90b6a0 commit 602ed30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ Here's how we can validate this inside our CatsController::createAction (which u

// ...

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Rimote\ValidationBundle\Validator\Exception\ErrorMessagesException;
use AppBundle\Entity\Cat;

/**
* @Route("/cats/", name="api_cats_create")
Expand Down

0 comments on commit 602ed30

Please sign in to comment.