Will also validate that the _locale parameter matches the regular expressionĢ7 # config/routes.yaml doc_shortcut: path: /doc controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController defaults: route: 'doc_page' # optionally you can define some arguments passed to the route page: 'index' version: 'current' # redirections are temporary by default (code 302) but you can make them permanent (code 301) permanent: true # add this to keep the original query string parameters when redirecting keepQueryParams: true # add this to keep the HTTP method when redirecting. Return function (RoutingConfigurator $routes). Use Symfony\ Component\ Routing\ Loader\ Configurator\ RoutingConfigurator 20 context.getMethod() in and ('User-Agent') matches '/firefox/i' ('User-Agent') matches '%app.allowed_browsers%' -> context.getHost() = env('APP_MAIN_HOST') -> params < 1000 ġ9 // config/routes.php use App\ Controller\ DefaultController
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |