This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/symfony/routing/Tests/Fixtures/validresource.php

19 lines
478 B
PHP
Raw Normal View History

2018-11-23 12:29:20 +00:00
<?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;