private function bootstrapDependencies(ModuleInterface $module) { foreach ($module->dependencies() as $name => $version) { if (!in_array($name, $this->bootstrapped)) { $this->get($name)->bootstrap($this->injector); } } }
public function views(Module\ModuleInterface $module, callable $container) { if ($module instanceof Module\ViewScriptAwareInterface) { $locator = new Fs\Locator(); $locator->setRoot($module->path()); $locator->addPaths($module->viewPaths()); $container('viewLocators')->append($locator); } }