/opt/alt/php54/usr/share/pear/test/Routing/Symfony/Component/Routing/Tests/Fixtures
<?php use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; $collection = new RouteCollection(); $collection->add('blog_show', new Route( '/blog/{slug}', array('_controller' => 'MyBlogBundle:Blog:show'), array('locale' => '\w+'), array('compiler_class' => 'RouteCompiler'), '{locale}.example.com', array('https'), array('GET','POST','put','OpTiOnS'), 'context.getMethod() == "GET"' )); $collection->add('blog_show_legacy', new Route( '/blog/{slug}', array('_controller' => 'MyBlogBundle:Blog:show'), array('_method' => 'GET|POST|put|OpTiOnS', '_scheme' => 'https', 'locale' => '\w+',), array('compiler_class' => 'RouteCompiler'), '{locale}.example.com', array(), array(), 'context.getMethod() == "GET"' )); return $collection;
.
Edit
..
Edit
AnnotatedClasses
Edit
CustomXmlFileLoader.php
Edit
RedirectableUrlMatcher.php
Edit
annotated.php
Edit
dumper
Edit
empty.yml
Edit
foo.xml
Edit
foo1.xml
Edit
incomplete.yml
Edit
missing_id.xml
Edit
missing_path.xml
Edit
namespaceprefix.xml
Edit
nonesense_resource_plus_path.yml
Edit
nonesense_type_without_resource.yml
Edit
nonvalid.xml
Edit
nonvalid.yml
Edit
nonvalid2.yml
Edit
nonvalidkeys.yml
Edit
nonvalidnode.xml
Edit
nonvalidroute.xml
Edit
special_route_name.yml
Edit
validpattern.php
Edit
validpattern.xml
Edit
validpattern.yml
Edit
validresource.xml
Edit
validresource.yml
Edit
withdoctype.xml
Edit