-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c55be1
commit b26a9fa
Showing
3 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Illuminate\Console\Events; | ||
|
||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
class CommandStarting | ||
{ | ||
/** | ||
* The command name. | ||
* | ||
* @var string | ||
*/ | ||
public $command; | ||
|
||
/** | ||
* The console input. | ||
* | ||
* @var string | ||
*/ | ||
public $input; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $command | ||
* @param \Symfony\Component\Console\Input\InputInterface $input | ||
* @return void | ||
*/ | ||
public function __construct($command, InputInterface $input) | ||
{ | ||
$this->command = $command; | ||
$this->input = $input; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace Illuminate\Console\Events; | ||
|
||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
class CommandTerminating | ||
{ | ||
/** | ||
* The command name. | ||
* | ||
* @var string | ||
*/ | ||
public $command; | ||
|
||
/** | ||
* The console input. | ||
* | ||
* @var string | ||
*/ | ||
public $input; | ||
|
||
/** | ||
* The command exit code. | ||
* | ||
* @var int | ||
*/ | ||
public $exitCode; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $command | ||
* @param \Symfony\Component\Console\Input\InputInterface $input | ||
* @param int $exitCode | ||
* @return void | ||
*/ | ||
public function __construct($command, InputInterface $input, $exitCode) | ||
{ | ||
$this->command = $command; | ||
$this->input = $input; | ||
$this->exitCode = $exitCode; | ||
} | ||
} |