/** * Returns the first project registered * * @return \Fewlines\Core\Application\ProjectManager\Project */ public function getFirstProject() { if ($this->countProjects() > 0) { $projects = ProjectManager::getProjects(); return $projects[0]; } return null; }
/** * Init the namespaces of the * projects */ protected final function initNamespaces() { $autoloader = $this->application->getAutoloader(); foreach (ProjectManager::getProjects() as $project) { $autoloader->addPsr4(rtrim($project->getNsName(), '\\') . '\\', $project->getNsPath()); } }