PHP Classes

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

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   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: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 546 bytes
 

Contents

Class file image Download
<?php

namespace Symfony\Component\Routing\Loader\Configurator;

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

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

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