Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Book] Do not extend the base controller before introducing it #5979

Merged
merged 1 commit into from
Dec 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions book/page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ a method inside of it that will be executed when someone goes to ``/lucky/number
// src/AppBundle/Controller/LuckyController.php
namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Response;

class LuckyController extends Controller
class LuckyController
{
/**
* @Route("/lucky/number")
Expand Down Expand Up @@ -104,7 +103,7 @@ Just add a second method to ``LuckyController``::
// src/AppBundle/Controller/LuckyController.php
// ...

class LuckyController extends Controller
class LuckyController
{
// ...

Expand Down Expand Up @@ -137,7 +136,7 @@ You can even shorten this with the handy :class:`Symfony\\Component\\HttpFoundat
// --> don't forget this new use statement
use Symfony\Component\HttpFoundation\JsonResponse;

class LuckyController extends Controller
class LuckyController
{
// ...

Expand Down Expand Up @@ -170,7 +169,7 @@ at the end:
// src/AppBundle/Controller/LuckyController.php
// ...

class LuckyController extends Controller
class LuckyController
{
/**
* @Route("/lucky/number/{count}")
Expand Down Expand Up @@ -224,7 +223,7 @@ The best part is that you can access this value and use it in your controller::
// src/AppBundle/Controller/LuckyController.php
// ...

class LuckyController extends Controller
class LuckyController
{

/**
Expand Down