-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Dispatch model pruning started and ended events (#47669)
* fire start/end events * test events * style ci * formatting * fix method --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
33aa4a9
commit b83abb4
Showing
4 changed files
with
81 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
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,24 @@ | ||
<?php | ||
|
||
namespace Illuminate\Database\Events; | ||
|
||
class ModelPruningFinished | ||
{ | ||
/** | ||
* The class names of the models that were pruned. | ||
* | ||
* @var array<class-string> | ||
*/ | ||
public $models; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param array<class-string> $models | ||
* @return void | ||
*/ | ||
public function __construct($models) | ||
{ | ||
$this->models = $models; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace Illuminate\Database\Events; | ||
|
||
class ModelPruningStarting | ||
{ | ||
/** | ||
* The class names of the models that will be pruned. | ||
* | ||
* @var array<class-string> | ||
*/ | ||
public $models; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param array<class-string> $models | ||
* @return void | ||
*/ | ||
public function __construct($models) | ||
{ | ||
$this->models = $models; | ||
} | ||
} |
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