Skip to content

Commit

Permalink
Merge pull request #26 from someline/1.7
Browse files Browse the repository at this point in the history
Improved command support for Laravel 5.5
  • Loading branch information
libern authored Sep 7, 2017
2 parents c2b5fdf + abd132e commit d5dcb02
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class BindingsCommand extends Command
class BindingsCommand extends CommandBase
{

/**
Expand Down
21 changes: 21 additions & 0 deletions src/Someline/Repository/Generators/Commands/CommandBase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Someline\Repository\Generators\Commands;

use File;
use Illuminate\Console\Command;

class CommandBase extends Command
{

public function handle()
{
$this->fire();
}

public function fire()
{
// ...
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class ControllerCommand extends Command
class ControllerCommand extends CommandBase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class CriteriaCommand extends Command
class CriteriaCommand extends CommandBase
{
/**
* The name of command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class EntityCommand extends Command
class EntityCommand extends CommandBase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class PresenterCommand extends Command
class PresenterCommand extends CommandBase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class RepositoryCommand extends Command
class RepositoryCommand extends CommandBase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class TransformerCommand extends Command
class TransformerCommand extends CommandBase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class ValidatorCommand extends Command
class ValidatorCommand extends CommandBase
{

/**
Expand Down

0 comments on commit d5dcb02

Please sign in to comment.