private function loadController($resourceValue, $resourceStack) { $controllerName = CoreApp::getControllerClassPath($resourceValue); if ($controllerName == $this->controllerName) { return; } $reflectionClass = new \ReflectionClass($controllerName); $controllerInstance = $reflectionClass->newInstance($resourceStack); $controllerInstance->init(); }