%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/kpk/api/vendor/symfony/routing/Tests/Fixtures/
Upload File :
Create Path :
Current File : /var/www/html/kpk/api/vendor/symfony/routing/Tests/Fixtures/php_object_dsl.php

<?php

namespace Symfony\Component\Routing\Loader\Configurator;

return new class() {
    public function __invoke(RoutingConfigurator $routes)
    {
        $routes
            ->collection()
            ->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->import('php_dsl_sub.php')
            ->namePrefix('z_')
            ->prefix('/zub');

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

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

Zerion Mini Shell 1.0