Example #1
0
 private function bootstrapDependencies(ModuleInterface $module)
 {
     foreach ($module->dependencies() as $name => $version) {
         if (!in_array($name, $this->bootstrapped)) {
             $this->get($name)->bootstrap($this->injector);
         }
     }
 }
Example #2
0
 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);
     }
 }