Skip to content

Instantly share code, notes, and snippets.

@krukru
Created January 17, 2020 15:41
Show Gist options
  • Save krukru/cddf2938d42b0f9db27892ef22f4aa16 to your computer and use it in GitHub Desktop.
Save krukru/cddf2938d42b0f9db27892ef22f4aa16 to your computer and use it in GitHub Desktop.
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends AbstractController
{
/**
* Matches /foo exactly
*
* @Route("/foo", name="my_unique_route_name")
*/
public function foo()
{
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment