/** * Dispatch CLI request */ public function dispatch() { $project = \Koda\Project::composer($this->root); $project->scan(); if ($this->convert_path) { $compiler = new Koda\Compiler\ZendEngine(); $compiler->setBuildDir($this->convert_path); $compiler->setResourcesDir($this->resources_dir); $compiler->process($project); } if ($this->mdocs_path) { $mdocs = new \Koda\Compiler\MDocs(); $mdocs->setDir($this->mdocs_path); $mdocs->process($project); } }