Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

abalsh / Garlix

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Garlix
  • vendor
  • symfony
  • routing
  • Tests
  • Fixtures
  • validpattern.php
Find file
BlameHistoryPermalink
  • Florian Shllaku's avatar
    Laravel has been added and the porting has been configured · 20bcaf2c
    Florian Shllaku committed 6 years ago
    20bcaf2c
validpattern.php 449 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?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;