Файл: MobileCMS-2.7.0-beta/System/Kernel/Routing/Router.php
Строк: 27
<?php
/**
* MobileCMS
*
* Open source content management system for mobile sites
*
* @author KpuTuK <bykputuk@ya.ru>
* @copyright Copyright (c) 2015, MobileCMS Team
* @license MIT License
*/
namespace SystemKernelRouting;
use SystemKernelConfigConfigLoader;
/**
* Description of Router
*
* @author KpuTuK
*/
class Router {
protected $mather;
public function __construct(ConfigLoader $config) {
if ( ! file_exists(APPS .'Cache/ClassCache/RouteCacheMather.php')) {
(new RouteDumper(
$config->load('routes')
))->dumpClass();
}
$this->mather = new ApplicationCacheClassCacheRouteCacheMather();
}
public function match($uri, $method) {
return $this->mather->match($uri, $method);
}
}