Example #1
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);
     }
 }
Example #2
0
 private function applyViewPaths(Locator $locator)
 {
     $paths = new Locator($this->path);
     $paths->addPaths((array) $this->classConfig->viewPaths, false);
     $locator->addPaths($paths);
 }