PHP Classes

File: vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php   Download  
File: vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 478 bytes
 

Contents

Class file image Download
<?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;