-
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.
[11.x] Added an event that reports files being deleted when calling t…
…he `schema:dump --prune` command (#53870) * Added an event that reports files being deleted when calling the `schema:dump --prune` command * Rename event classes to better reflect functionality and update usage accordingly * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
1671bdd
commit 83c3855
Showing
2 changed files
with
47 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,43 @@ | ||
<?php | ||
|
||
namespace Illuminate\Database\Events; | ||
|
||
use Illuminate\Database\Connection; | ||
|
||
class MigrationsPruned | ||
{ | ||
/** | ||
* The database connection instance. | ||
* | ||
* @var \Illuminate\Database\Connection | ||
*/ | ||
public $connection; | ||
|
||
/** | ||
* The database connection name. | ||
* | ||
* @var string|null | ||
*/ | ||
public $connectionName; | ||
|
||
/** | ||
* The path to the directory where migrations were pruned. | ||
* | ||
* @var string | ||
*/ | ||
public $path; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Illuminate\Database\Connection $connection | ||
* @param string $path | ||
* @return void | ||
*/ | ||
public function __construct(Connection $connection, string $path) | ||
{ | ||
$this->connection = $connection; | ||
$this->connectionName = $connection->getName(); | ||
$this->path = $path; | ||
} | ||
} |