This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from adiachenko/events56
[5.6] Dispatch event for each started feature, operation and job
- Loading branch information
Showing
5 changed files
with
93 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Lucid\Foundation\Events; | ||
|
||
class FeatureStarted | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $arguments; | ||
|
||
/** | ||
* FeatureStarted constructor. | ||
* @param string $name | ||
* @param array $arguments | ||
*/ | ||
public function __construct($name, array $arguments = []) | ||
{ | ||
$this->name = $name; | ||
$this->arguments = $arguments; | ||
} | ||
} |
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,27 @@ | ||
<?php | ||
|
||
namespace Lucid\Foundation\Events; | ||
|
||
class JobStarted | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $arguments; | ||
|
||
/** | ||
* JobStarted constructor. | ||
* @param string $name | ||
* @param array $arguments | ||
*/ | ||
public function __construct($name, array $arguments = []) | ||
{ | ||
$this->name = $name; | ||
$this->arguments = $arguments; | ||
} | ||
} |
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,27 @@ | ||
<?php | ||
|
||
namespace Lucid\Foundation\Events; | ||
|
||
class OperationStarted | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $arguments; | ||
|
||
/** | ||
* OperationStarted constructor. | ||
* @param string $name | ||
* @param array $arguments | ||
*/ | ||
public function __construct($name, array $arguments = []) | ||
{ | ||
$this->name = $name; | ||
$this->arguments = $arguments; | ||
} | ||
} |
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