Skip to content

Instantly share code, notes, and snippets.

@bkozora
Created January 5, 2015 15:36
Show Gist options
  • Save bkozora/185fa9e3e7bf98213cab to your computer and use it in GitHub Desktop.
Save bkozora/185fa9e3e7bf98213cab to your computer and use it in GitHub Desktop.
Symfony2 Routes PHP
<?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