Skip to content

Commit

Permalink
Rename event classes to better reflect functionality and update usage…
Browse files Browse the repository at this point in the history
… accordingly
  • Loading branch information
andrey-helldar committed Dec 14, 2024
1 parent 2472b49 commit 685ccdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Console/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Database\Connection;
use Illuminate\Database\ConnectionResolverInterface;
use Illuminate\Database\Events\SchemaDumped;
use Illuminate\Database\Events\SchemaPruned;
use Illuminate\Database\Events\MigrationsPruned;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Config;
use Symfony\Component\Console\Attribute\AsCommand;
Expand Down Expand Up @@ -58,7 +58,7 @@ public function handle(ConnectionResolverInterface $connections, Dispatcher $dis

$info .= ' and pruned';

$dispatcher->dispatch(new SchemaPruned($connection, $path));
$dispatcher->dispatch(new MigrationsPruned($connection, $path));
}

$this->components->info($info.' successfully.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Illuminate\Database\Connection;

class SchemaPruned
class MigrationsPruned
{
/**
* The database connection instance.
Expand All @@ -18,7 +18,7 @@ class SchemaPruned
/**
* The database connection name.
*
* @var string
* @var string|null
*/
public ?string $connectionName;

Expand Down

0 comments on commit 685ccdb

Please sign in to comment.