52ddfde0208f8de606f9e9f7367da10de7daf45d
[yaffs-website] / vendor / symfony / routing / Tests / Fixtures / validpattern.php
1 <?php
2
3 use Symfony\Component\Routing\Route;
4 use Symfony\Component\Routing\RouteCollection;
5
6 $collection = new RouteCollection();
7 $collection->add('blog_show', new Route(
8     '/blog/{slug}',
9     array('_controller' => 'MyBlogBundle:Blog:show'),
10     array('locale' => '\w+'),
11     array('compiler_class' => 'RouteCompiler'),
12     '{locale}.example.com',
13     array('https'),
14     array('GET', 'POST', 'put', 'OpTiOnS'),
15     'context.getMethod() == "GET"'
16 ));
17
18 return $collection;