PHP Classes

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

Recommend this page to a friend!
  Classes of Stanley Aloh   Tic Tac Toe Multiplayer   vendor/symfony/routing/Tests/Fixtures/php_dsl.php   Download  
File: vendor/symfony/routing/Tests/Fixtures/php_dsl.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: 715 bytes
 

Contents

Class file image Download
<?php

namespace Symfony\Component\Routing\Loader\Configurator;

return function (
RoutingConfigurator $routes) {
   
$routes
       
->collection()
        ->
add('foo', '/foo')
            ->
condition('abc')
            ->
options(['utf8' => true])
        ->
add('buz', 'zub')
            ->
controller('foo:act');

   
$routes->import('php_dsl_sub.php')
        ->
prefix('/sub')
        ->
requirements(['id' => '\d+']);

   
$routes->import('php_dsl_sub.php')
        ->
namePrefix('z_')
        ->
prefix('/zub');

   
$routes->import('php_dsl_sub_root.php')
        ->
prefix('/bus', false);

   
$routes->add('ouf', '/ouf')
        ->
schemes(['https'])
        ->
methods(['GET'])
        ->
defaults(['id' => 0]);
};