<?php namespace mfe\core\core; use mfe\core\libs\interfaces\IComponent; use mfe\core\libs\components\CCore; use mfe\core\mfe; mfe::dependence('request'); /** * Class Router * @package mfe\core\core */ class Router extends CCore implements IComponent { const COMPONENT_NAME = 'Router'; const COMPONENT_VERSION = '1.0.0'; public $route = ''; protected $routePaths = []; public static $mainRoute = ''; public function routerInit() { $this->route = ''; } public static function registerComponent() { mfe::registerCoreComponent('router', [get_called_class(), 'routerInit']); return true; } }