Created
August 28, 2017 00:13
-
-
Save deckchairlabs/064dc6bebe188de47059eec010d2b9ec to your computer and use it in GitHub Desktop.
Route attributes for configuring controllers/actions
This file contains 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
my_route: | |
path: /my-cool-route | |
defaults: | |
_controller: 'Some\Controller:indexAction' | |
twig_param_name: 'posts' #this is available at the $request->attributes->get('twig_param_name') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment