/** * Setup the Component Paths * @param \Jazz\Application\ISettings $settings * @param \Jazz\Loader\IEngine $engine * @param string $name */ public function setupComponent(\Jazz\Application\ISettings $settings, \Jazz\Loader\IEngine $engine, $name) { $engine->setReturnFilePath(true); $path = $this->formatComponentPath($settings, $name); if (file_exists($path)) { $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'ini')); $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'php')); } }
/** * Setup the Component Paths * @param \Jazz\Application\ISettings $settings * @param \Jazz\Loader\IEngine $engine * @param string $name */ public function setupComponent(\Jazz\Application\ISettings $settings, \Jazz\Loader\IEngine $engine, $name) { $engine->setIsClass(true); $engine->setReturnClassName(true); $path = $this->formatComponentPath($settings, $name); if (file_exists($path)) { $ns = $this->formatComponentNamespace($settings, $name); $engine->appendPath(new \Jazz\Loader\Path($path, $ns, null, null, 'php', $settings->getSeparator())); } $path = $this->formatLibraryPath($settings); if (file_exists($path)) { $ns = $this->formatLibraryNamespace($settings); $engine->appendPath(new \Jazz\Loader\Path($path, $ns, null, null, 'php', $settings->getSeparator())); } }
/** * Setup the Application Paths * @param \Jazz\Application\ISettings $settings * @param \Jazz\Loader\IEngine $engine */ public function setupApplication(\Jazz\Application\ISettings $settings, \Jazz\Loader\IEngine $engine) { $engine->setReturnFilePath(true); $path = $this->formatApplicationPath($settings); if (file_exists($path)) { $engine->appendPath(new \Jazz\Loader\Path($path, null, null, null, 'phtml')); } }