Created
January 17, 2020 15:41
-
-
Save krukru/cddf2938d42b0f9db27892ef22f4aa16 to your computer and use it in GitHub Desktop.
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 | |
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