Skip to content

Commit

Permalink
[7-21] getConcertsAction()メソッドの@rest\Getアノテーションを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Dec 28, 2015
1 parent ffb93a1 commit 3301513
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions docs/lists/ch07/07-21.txt
@@ -0,0 +1,8 @@
...
class ConcertController extends FOSRestController
{
public function getConcertsAction()
{
...
}
}
4 changes: 0 additions & 4 deletions src/AppBundle/Controller/Api/ConcertController.php
Expand Up @@ -2,13 +2,9 @@
namespace AppBundle\Controller\Api;

use FOS\RestBundle\Controller\FOSRestController;
use FOS\RestBundle\Controller\Annotations as Rest;

class ConcertController extends FOSRestController
{
/**
* @Rest\Get("/api/concerts.{_format}")
*/
public function getConcertsAction()
{
$em = $this->get('doctrine')->getManager();
Expand Down

0 comments on commit 3301513

Please sign in to comment.