/** * run processes for setting up the application * * @param ConfigurationInterface $modulesConfiguration configuration that defines all modules */ public function setUp(ConfigurationInterface $modulesConfiguration) { $configurationValidator = new ConfigurationValidator(); $router = new Router(); $router->setRequest(Request::createFromGlobals()); $configurationValidator->validateModulesConfiguration($modulesConfiguration->getConfiguration()); $router->resolvePath(); $router->setModules($modulesConfiguration->getConfiguration()); $router->resolveModule(); $configurationValidator->validateModuleConfiguration($router->getModuleConfiguration(), $router->getModuleIsFallback()); $router->process(); $moduleConfiguration = $this->resolveControllerDependency($router->getModuleConfiguration(), $router->getMatchingRegexp()); $configurationValidator->validateModuleConfiguration($moduleConfiguration, $router->getModuleIsFallback(), $router->getMatchingRegexp()); $this->method = $moduleConfiguration['functions'][$router->getMatchingRegexp()]['method']; $diArr = $this->mergeDi($moduleConfiguration['dependencies'], $moduleConfiguration['functions'][$router->getMatchingRegexp()]['dependencies']); $this->moduleDiContainer = $this->initDI($diArr); }
public function resolvePath() { parent::resolvePath(); }