D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
vendor
/
symfony
/
routing
/
Tests
/
Fixtures
/
Filename :
validresource.php
back
Copy
<?php /** @var $loader \Symfony\Component\Routing\Loader\PhpFileLoader */ /** @var \Symfony\Component\Routing\RouteCollection $collection */ $collection = $loader->import('validpattern.php'); $collection->addDefaults(array( 'foo' => 123, )); $collection->addRequirements(array( 'foo' => '\d+', )); $collection->addOptions(array( 'foo' => 'bar', )); $collection->setCondition('context.getMethod() == "POST"'); $collection->addPrefix('/prefix'); return $collection;