482c80b29e919e0d06c4ef62e7e65e376b955302
[yaffs-website] / vendor / symfony / routing / Tests / Fixtures / validresource.php
1 <?php
2
3 /** @var $loader \Symfony\Component\Routing\Loader\PhpFileLoader */
4 /** @var \Symfony\Component\Routing\RouteCollection $collection */
5 $collection = $loader->import('validpattern.php');
6 $collection->addDefaults(array(
7     'foo' => 123,
8 ));
9 $collection->addRequirements(array(
10     'foo' => '\d+',
11 ));
12 $collection->addOptions(array(
13     'foo' => 'bar',
14 ));
15 $collection->setCondition('context.getMethod() == "POST"');
16 $collection->addPrefix('/prefix');
17
18 return $collection;