/** * Displays the list of existing job queues. * * @param array $arguments (optional) * @param array $options (optional) */ public function execute($arguments = array(), $options = array()) { $project = ProjectConfiguration::getActive(); $this->root = $project->getRootDir(); $this->arguments = $arguments; $this->dirs = array($this->root . "/web"); FileUtils::getPluginDirs($this->dirs, $this->root, "/web"); $this->logSection("\nXML Generating file list.. (this may take a while)\n" . "File type: " . $arguments["ext"] . " \n", null, null, "ERROR"); foreach ($this->dirs as $dir) { FileUtils::scanDirs($dir, "js", $this->files, true); } $this->printResult(); $this->finalize(); }
public static function readSchema($combined = true) { $schema = array(); $dirs = array(sfConfig::get("sf_root_dir")); if ($combined) { FileUtils::getPluginDirs($dirs); } foreach ($dirs as $dir) { if (file_exists($dir . "/config/schema.yml")) { $content = file_get_contents($dir . "/config/schema.yml"); $tmp = sfYaml::load($content); unset($tmp["propel"]["_attributes"]); $schema = array_merge($schema, $tmp["propel"]); } } return array("propel" => $schema); }