home
/
zktecojo
/
public_html
/
vendor
/
symfony
/
routing
/
Symfony
/
Component
/
Routing
/
Tests
/
Fixtures
➕ New
📤 Upload
✎ Editing:
validpattern.php
← Back
<?php use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; $collection = new RouteCollection(); $collection->add('blog_show', new Route( '/blog/{slug}', array('_controller' => 'MyBlogBundle:Blog:show'), array('locale' => '\w+'), array('compiler_class' => 'RouteCompiler'), '{locale}.example.com', array('https'), array('GET', 'POST', 'put', 'OpTiOnS'), 'context.getMethod() == "GET"' )); $collection->add('blog_show_legacy', new Route( '/blog/{slug}', array('_controller' => 'MyBlogBundle:Blog:show'), array('_method' => 'GET|POST|put|OpTiOnS', '_scheme' => 'https', 'locale' => '\w+'), array('compiler_class' => 'RouteCompiler'), '{locale}.example.com', array(), array(), 'context.getMethod() == "GET"' )); return $collection;
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel