Skip to content

Commit 96d666e

Browse files
motiapatrickbrouwers
authored andcommitted
rename fire method to handle in commands (#52)
1 parent b741c1d commit 96d666e

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

src/Console/DiffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DiffCommand extends Command
3333
* @param SqlBuilder $builder
3434
* @param MigrationFileGenerator $generator
3535
*/
36-
public function fire(
36+
public function handle(
3737
ConfigurationProvider $provider,
3838
ManagerRegistry $registry,
3939
SqlBuilder $builder,

src/Console/ExecuteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ExecuteCommand extends Command
3434
* @param ConfigurationProvider $provider
3535
* @param Migrator $migrator
3636
*/
37-
public function fire(ConfigurationProvider $provider, Migrator $migrator)
37+
public function handle(ConfigurationProvider $provider, Migrator $migrator)
3838
{
3939
if (!$this->confirmToProceed()) {
4040
return;

src/Console/GenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class GenerateCommand extends Command
2828
* @param ConfigurationProvider $provider
2929
* @param MigrationFileGenerator $generator
3030
*/
31-
public function fire(ConfigurationProvider $provider, MigrationFileGenerator $generator)
31+
public function handle(ConfigurationProvider $provider, MigrationFileGenerator $generator)
3232
{
3333
$configuration = $provider->getForConnection($this->option('connection'));
3434

src/Console/LatestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LatestCommand extends Command
2424
*
2525
* @param ConfigurationProvider $provider
2626
*/
27-
public function fire(ConfigurationProvider $provider)
27+
public function handle(ConfigurationProvider $provider)
2828
{
2929
$configuration = $provider->getForConnection(
3030
$this->option('connection')

src/Console/MigrateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MigrateCommand extends Command
4141
* @throws \Doctrine\DBAL\Migrations\MigrationException
4242
* @return int
4343
*/
44-
public function fire(ConfigurationProvider $provider, Migrator $migrator)
44+
public function handle(ConfigurationProvider $provider, Migrator $migrator)
4545
{
4646
if (!$this->confirmToProceed()) {
4747
return;

src/Console/RefreshCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RefreshCommand extends Command
2424
/**
2525
* Execute the console command.
2626
*/
27-
public function fire()
27+
public function handle()
2828
{
2929
$this->call('doctrine:migrations:reset', [
3030
'--connection' => $this->option('connection')

src/Console/ResetCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ResetCommand extends Command
3434
*
3535
* @param ConfigurationProvider $provider
3636
*/
37-
public function fire(ConfigurationProvider $provider)
37+
public function handle(ConfigurationProvider $provider)
3838
{
3939
$configuration = $provider->getForConnection(
4040
$this->option('connection')

src/Console/RollbackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RollbackCommand extends Command
2727
*
2828
* @param ConfigurationProvider $provider
2929
*/
30-
public function fire(ConfigurationProvider $provider)
30+
public function handle(ConfigurationProvider $provider)
3131
{
3232
$configuration = $provider->getForConnection(
3333
$this->option('connection')

src/Console/StatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class StatusCommand extends Command
2626
*
2727
* @param ConfigurationProvider $provider
2828
*/
29-
public function fire(ConfigurationProvider $provider)
29+
public function handle(ConfigurationProvider $provider)
3030
{
3131
$configuration = $provider->getForConnection(
3232
$this->option('connection')

src/Console/VersionCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class VersionCommand extends Command
4242
*
4343
* @param ConfigurationProvider $provider
4444
*/
45-
public function fire(ConfigurationProvider $provider)
45+
public function handle(ConfigurationProvider $provider)
4646
{
4747
$this->configuration = $provider->getForConnection(
4848
$this->option('connection')

0 commit comments

Comments
 (0)