Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 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;