public function __construct(Module\ManagerInterface $modules, callable $router, callable $controllerResolver, \ArrayIterator $routers) { $this->config = $modules->get('europaphp/help')->config(); $this->modules = $modules; $this->router = $router; $this->controllerResolver = $controllerResolver; $this->routers = $routers; }
private function validateModules(ManagerInterface $manager) { foreach ($this->classConfig->requiredModules as $module) { if (!$manager->offsetExists($module)) { Exception::toss('The module "%s" is required by the module "%s".', $module, $this->name); } } }