PHP Classes

File: vendor/symfony/routing/Tests/Fixtures/validpattern.php

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/symfony/routing/Tests/Fixtures/validpattern.php   Download  
File: vendor/symfony/routing/Tests/Fixtures/validpattern.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chatto PHP Websocket Chat System
Websocket based chat system using Ratchet library
Author: By
Last change:
Date: 3 years ago
Size: 449 bytes
 

Contents

Class file image Download
<?php

use Symfony\Component\Routing\Route;
use
Symfony\Component\Routing\RouteCollection;

$collection = new RouteCollection();
$collection->add('blog_show', new Route(
   
'/blog/{slug}',
    [
'_controller' => 'MyBlogBundle:Blog:show'],
    [
'locale' => '\w+'],
    [
'compiler_class' => 'RouteCompiler'],
   
'{locale}.example.com',
    [
'https'],
    [
'GET', 'POST', 'put', 'OpTiOnS'],
   
'context.getMethod() == "GET"'
));

return
$collection;