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