-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add method to MigrationsStarted/MigrationEnded events (#40334)
* Add method (up/down) to MigrationsStarted/Ended events * add missing tests * Update MigrationsEvent.php Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
20d9fff
commit d320012
Showing
5 changed files
with
45 additions
and
10 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,26 @@ | ||
<?php | ||
|
||
namespace Illuminate\Database\Events; | ||
|
||
use Illuminate\Contracts\Database\Events\MigrationEvent as MigrationEventContract; | ||
|
||
abstract class MigrationsEvent implements MigrationEventContract | ||
{ | ||
/** | ||
* The migration method that was invoked. | ||
* | ||
* @var string | ||
*/ | ||
public $method; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $method | ||
* @return void | ||
*/ | ||
public function __construct($method) | ||
{ | ||
$this->method = $method; | ||
} | ||
} |
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
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