* initial commit
This commit is contained in:
19
src/App/Runner/Local.php
Normal file
19
src/App/Runner/Local.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Runner;
|
||||
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
class Local implements RunnerInterface
|
||||
{
|
||||
public function execute($command): string
|
||||
{
|
||||
$process = new Process([
|
||||
$command
|
||||
]);
|
||||
$process->run();
|
||||
return $process->getOutput();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user