1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12090] Pass route name to url() to allow admins to change the routes

PHPBB3-12090
This commit is contained in:
Joas Schilling
2014-03-07 12:32:38 +01:00
parent 4b6f3f8b0f
commit 51273f6fb1
10 changed files with 162 additions and 133 deletions

View File

@@ -0,0 +1,7 @@
controller1:
pattern: /foo
defaults: { _controller: foo.controller:handle }
include_controller2:
resource: "routing_2.yml"
prefix: /foo

View File

@@ -0,0 +1,6 @@
controller2:
pattern: /bar
defaults: { _controller: foo.controller:handle }
controller3:
pattern: /bar/p-{p}
defaults: { _controller: foo.controller:handle }

View File

@@ -0,0 +1,3 @@
services:
foo.controller:
class: foo\controller

View File

@@ -0,0 +1,18 @@
<?php
namespace foo;
use Symfony\Component\HttpFoundation\Response;
class controller
{
/**
* Handle method
*
* @return null
*/
public function handle()
{
return new Response('Test', 200);
}
}