1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/controller] Use a dumped url matcher class to improve performance

PHPBB3-10864
This commit is contained in:
David King
2012-11-14 15:42:13 -05:00
parent 5877bf1b1b
commit d3aa8823b2
4 changed files with 106 additions and 55 deletions

View File

@@ -1,36 +0,0 @@
<?php
/**
*
* @package controller
* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
use Symfony\Component\Routing\RouteCollection;
/**
* Controller manager class
* @package phpBB3
*/
class phpbb_controller_route_collection extends RouteCollection
{
/**
* Construct method
*
* @param phpbb_extension_finder $finder Finder object
*/
public function __construct(phpbb_extension_finder $finder, phpbb_controller_provider $provider)
{
parent::__construct();
$this->addCollection($provider->get_paths($finder)->find());
}
}