Created
January 5, 2015 15:36
-
-
Save bkozora/185fa9e3e7bf98213cab to your computer and use it in GitHub Desktop.
Symfony2 Routes PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/AppBundle/Controller/BlogController.php | |
namespace AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
class BlogController extends Controller | |
{ | |
/** | |
* @Route("/blog/{slug}") | |
*/ | |
public function showAction($slug) | |
{ | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment