public function getCommand() { return sprintf('php app/console %s', parent::getCommand()); }
/** * @param string $command * * @return \Robo\Result */ protected function executeCommand($command) { // insert the options into the command $a = explode(' ', $command); $executable = array_shift($a); foreach ($this->minifierOptions as $key => $value) { // first prepend the value if (!empty($value)) { array_unshift($a, $value); } // then add the key if (!is_numeric($key)) { array_unshift($a, $key); } } // check if the executable can be replaced with the downloaded one if (array_key_exists($executable, $this->executablePaths)) { $executable = $this->executablePaths[$executable]; } array_unshift($a, $executable); $command = implode(' ', $a); // execute the command $exec = new Exec($command); return $exec->inflect($this)->printed(false)->run(); }