private function shutdown() { if ($this->_arguments->getFlag('profile')) { $memoryUsageMb = round(memory_get_usage(true) / 1048576, 2); $memoryPeakMb = round(memory_get_peak_usage(true) / 1048576, 2); $this->out("<info>Memory usage: {$memoryUsageMb}MB (peak: {$memoryPeakMb}MB), time: " . number_format(microtime(true) - $this->_start_time, 2) . "s</info>"); } }
/** * Pass in Arguments object to set available flags, options, and commands * * @param Arguments $arguments */ public function set(Arguments $arguments) { $this->consume($arguments->getArguments()); $this->consume($arguments->getFlags()); $this->consume($arguments->getOptions()); $this->consume($arguments->getCommands()); }