transport = $transport; } /** * Run command. * * @param string $command * @param array $options [optional] * @return void */ public function execute($command, $options = []) { $curl = $this->transport; $curl->write($this->prepareUrl($command, $options), [], CurlInterface::GET); $curl->read(); $curl->close(); } /** * Prepare url. * * @param string $command * @param array $options [optional] * @return string */ private function prepareUrl($command, $options = []) { $command .= ' ' . implode(' ', $options); return $_ENV['app_frontend_url'] . self::URL . '?command=' . urlencode($command); } }