PHP Classes

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

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php   Download  
File: vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/Fixtures/validpattern.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: 474 bytes
 

Contents

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

return
$collection;