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:
@@ -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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user