PHP Classes

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

Recommend this page to a friend!
  Classes of Stanley Aloh   Tic Tac Toe Multiplayer   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: Tic Tac Toe Multiplayer
Manage the interactions ofTic-Tac-Toe game players
Author: By
Last change:
Date: 9 days 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;