8000 Added annotations example to Linking to Pages examples by carlos-granados · Pull Request #5781 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added annotations example to Linking to Pages examples #5781

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

Merged
merged 4 commits into from
Nov 5, 2015
Merged
Changes from 1 commit
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
Prev Previous commit
Added missing namespace statements
added the namespace statements to the annotation examples
  • Loading branch information
Carlos Granados committed Oct 19, 2015
commit 43f751e810f895f5b49dcf7f19addfcca07b7a6a
4 changes: 4 additions & 0 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,8 @@ configuration:
.. code-block:: php-annotations

// src/AppBundle/Controller/WelcomeController.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will also need the namespace declaration

namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

Expand Down Expand Up @@ -938,6 +940,8 @@ route:
.. code-block:: php-annotations

// src/AppBundle/Controller/ArticleController.php
namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

Expand Down
0