Skip to content

Commit

Permalink
Fix #172
Browse files Browse the repository at this point in the history
Changed the commands 'fire' method to 'handle'  in order to work properly in Laravel 5.5 according to this  laravel/framework@ac9f29d
  • Loading branch information
santigarcor committed Jul 26, 2017
1 parent 82c850d commit 5a029a4
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/commands/AddLaratrustUserTraitUseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AddLaratrustUserTraitUseCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
$models = $this->getUserModels() ;

Expand Down
10 changes: 0 additions & 10 deletions src/commands/MakePermissionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ class MakePermissionCommand extends GeneratorCommand
*/
protected $type = 'Permission model';

/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
parent::fire();
}

/**
* Get the stub file for the generator.
*
Expand Down
10 changes: 0 additions & 10 deletions src/commands/MakeRoleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ class MakeRoleCommand extends GeneratorCommand
*/
protected $type = 'Role model';

/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
parent::fire();
}

/**
* Get the stub file for the generator.
*
Expand Down
2 changes: 1 addition & 1 deletion src/commands/MakeSeederCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MakeSeederCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
$this->laravel->view->addNamespace('laratrust', substr(__DIR__, 0, -8).'views');

Expand Down
10 changes: 0 additions & 10 deletions src/commands/MakeTeamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ class MakeTeamCommand extends GeneratorCommand
*/
protected $type = 'Team model';

/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
parent::fire();
}

/**
* Get the stub file for the generator.
*
Expand Down
2 changes: 1 addition & 1 deletion src/commands/MigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MigrationCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
$this->laravel->view->addNamespace('laratrust', substr(__DIR__, 0, -8).'views');
$this->line('');
Expand Down
2 changes: 1 addition & 1 deletion src/commands/SetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct()
*
* @return void
*/
public function fire()
public function handle()
{
foreach ($this->calls as $command => $info) {
$this->line(PHP_EOL . $info);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/SetupTeamsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SetupTeamsCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
if (!Config::get('laratrust.use_teams')) {
$this->error('Not using teams in your Laratrust configuration file.');
Expand Down
2 changes: 1 addition & 1 deletion src/commands/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UpgradeCommand extends Command
*
* @return void
*/
public function fire()
public function handle()
{
$this->laravel->view->addNamespace('laratrust', substr(__DIR__, 0, -8).'views');

Expand Down

0 comments on commit 5a029a4

Please sign in to comment.