diff options
Diffstat (limited to 'assets/php/vendor/symfony/routing/Tests/Fixtures/validresource.php')
-rw-r--r-- | assets/php/vendor/symfony/routing/Tests/Fixtures/validresource.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/assets/php/vendor/symfony/routing/Tests/Fixtures/validresource.php b/assets/php/vendor/symfony/routing/Tests/Fixtures/validresource.php new file mode 100644 index 0000000..482c80b --- /dev/null +++ b/assets/php/vendor/symfony/routing/Tests/Fixtures/validresource.php @@ -0,0 +1,18 @@ +<?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; |