Server IP : 172.67.158.161 / Your IP : 18.118.195.166 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/cloudlinux/alt-php55/root/usr/share/pear/test/Routing/Symfony/Component/Routing/Tests/Fixtures/ |
Upload File : |
<?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;