Skip to content

Commit

Permalink
rename fire method to handle in commands (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
motia authored and patrickbrouwers committed Sep 1, 2017
1 parent b741c1d commit 96d666e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Console/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DiffCommand extends Command
* @param SqlBuilder $builder
* @param MigrationFileGenerator $generator
*/
public function fire(
public function handle(
ConfigurationProvider $provider,
ManagerRegistry $registry,
SqlBuilder $builder,
Expand Down
2 changes: 1 addition & 1 deletion src/Console/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ExecuteCommand extends Command
* @param ConfigurationProvider $provider
* @param Migrator $migrator
*/
public function fire(ConfigurationProvider $provider, Migrator $migrator)
public function handle(ConfigurationProvider $provider, Migrator $migrator)
{
if (!$this->confirmToProceed()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Console/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GenerateCommand extends Command
* @param ConfigurationProvider $provider
* @param MigrationFileGenerator $generator
*/
public function fire(ConfigurationProvider $provider, MigrationFileGenerator $generator)
public function handle(ConfigurationProvider $provider, MigrationFileGenerator $generator)
{
$configuration = $provider->getForConnection($this->option('connection'));

Expand Down
2 changes: 1 addition & 1 deletion src/Console/LatestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LatestCommand extends Command
*
* @param ConfigurationProvider $provider
*/
public function fire(ConfigurationProvider $provider)
public function handle(ConfigurationProvider $provider)
{
$configuration = $provider->getForConnection(
$this->option('connection')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MigrateCommand extends Command
* @throws \Doctrine\DBAL\Migrations\MigrationException
* @return int
*/
public function fire(ConfigurationProvider $provider, Migrator $migrator)
public function handle(ConfigurationProvider $provider, Migrator $migrator)
{
if (!$this->confirmToProceed()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Console/RefreshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RefreshCommand extends Command
/**
* Execute the console command.
*/
public function fire()
public function handle()
{
$this->call('doctrine:migrations:reset', [
'--connection' => $this->option('connection')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/ResetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ResetCommand extends Command
*
* @param ConfigurationProvider $provider
*/
public function fire(ConfigurationProvider $provider)
public function handle(ConfigurationProvider $provider)
{
$configuration = $provider->getForConnection(
$this->option('connection')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/RollbackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RollbackCommand extends Command
*
* @param ConfigurationProvider $provider
*/
public function fire(ConfigurationProvider $provider)
public function handle(ConfigurationProvider $provider)
{
$configuration = $provider->getForConnection(
$this->option('connection')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StatusCommand extends Command
*
* @param ConfigurationProvider $provider
*/
public function fire(ConfigurationProvider $provider)
public function handle(ConfigurationProvider $provider)
{
$configuration = $provider->getForConnection(
$this->option('connection')
Expand Down
2 changes: 1 addition & 1 deletion src/Console/VersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class VersionCommand extends Command
*
* @param ConfigurationProvider $provider
*/
public function fire(ConfigurationProvider $provider)
public function handle(ConfigurationProvider $provider)
{
$this->configuration = $provider->getForConnection(
$this->option('connection')
Expand Down

0 comments on commit 96d666e

Please sign in to comment.