From: Vincent Vanwaelscappel Date: Wed, 6 Mar 2024 11:00:18 +0000 (+0100) Subject: wip #6772 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7cbf213aaf00b4e16eccb46fb0d61d2f2153375d;p=cubist_cms-back.git wip #6772 @1 --- diff --git a/src/app/Jobs/CommandLine.php b/src/app/Jobs/CommandLine.php new file mode 100644 index 0000000..2e4eb97 --- /dev/null +++ b/src/app/Jobs/CommandLine.php @@ -0,0 +1,22 @@ +_command = $command; + } + + public function handle() + { + if (is_string($this->_command)) { + `$this->_command`; + } else if ($this->_command instanceof \Cubist\Util\CommandLine) { + $this->_command->execute(); + } + } +}