/** * 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())); } }