Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test
  • Loading branch information
xabbuh committed Nov 10, 2015
commit 3884d7231d6edc84d9efdf1e4c994b52ef26790e
17 changes: 17 additions & 0 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,23 @@ configuration:

.. configuration-block::

.. code-block:: php-annotations

// src/AppBundle/Controller/WelcomeController.php
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

class WelcomeController extends Controller
{
/**
* @Route("/", name="_welcome")
*/
public function indexAction()
{
// ...
}
}

.. code-block:: yaml

# app/config/routing.yml
Expand Down