20 lines
260 B
PHP
20 lines
260 B
PHP
<?php
|
|
|
|
namespace Laravel\Horizon;
|
|
|
|
class Exec
|
|
{
|
|
/**
|
|
* Run the given command.
|
|
*
|
|
* @param string $command
|
|
* @return array
|
|
*/
|
|
public function run($command)
|
|
{
|
|
exec($command, $output);
|
|
|
|
return $output;
|
|
}
|
|
}
|