Файл: gapps/vendor/symfony/routing/Tests/Fixtures/validresource.php
Строк: 25
<?php
/** @var $loader SymfonyComponentRoutingLoaderPhpFileLoader */
/** @var SymfonyComponentRoutingRouteCollection $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;