/** * Runs another generator. The first parameter is the name of the * generator to run. The $options parameter is added to the existing * options passed to this command, and then they are passed along to * the next command. * * @param $command * @param null $options */ public function generate($command, $options = '', $quiet = false) { $orig_options = CLI::optionString(); $options = $orig_options . ' ' . $options; if ($quiet === true) { $options .= ' -quiet'; } if ($this->overwrite === true) { $options .= ' -overwrite'; } passthru("php sprint forge {$command} {$options}"); }