Skip to content

Commit 98736ba

Browse files
author
endi
committed
Update to Laravel 5.5
1 parent 0918110 commit 98736ba

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/Console/NavigationTableCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NavigationTableCommand extends Command
3030
protected $files;
3131

3232
/**
33-
* @var \Illuminate\Foundation\Composer
33+
* @var \Illuminate\Support\Composer
3434
*/
3535
protected $composer;
3636

@@ -52,11 +52,11 @@ public function __construct(Filesystem $files, Composer $composer)
5252
*
5353
* @return void
5454
*/
55-
public function fire()
55+
public function handle()
5656
{
5757
$fullPath = $this->createBaseMigration();
5858

59-
$this->files->put($fullPath, $this->files->get(__DIR__.'/stubs/navigation.stub'));
59+
$this->files->put($fullPath, $this->files->get(__DIR__ . '/stubs/navigation.stub'));
6060

6161
$this->info('Migration created successfully!');
6262

@@ -72,7 +72,7 @@ protected function createBaseMigration()
7272
{
7373
$name = 'create_navigation_tables';
7474

75-
$path = $this->laravel->databasePath().'/migrations';
75+
$path = $this->laravel->databasePath() . '/migrations';
7676

7777
return $this->laravel['migration.creator']->create($name, $path);
7878
}

src/Console/ProviderMakeCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Terranet\Navigation\Console;
44

55
use Illuminate\Console\GeneratorCommand;
6-
use Symfony\Component\Console\Input\InputOption;
76

87
class ProviderMakeCommand extends GeneratorCommand
98
{

src/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ServiceProvider extends BaseServiceProvider
1010
{
1111
public function boot()
1212
{
13-
if (! defined('_TERRANET_NAVIGATION_')) {
13+
if (!defined('_TERRANET_NAVIGATION_')) {
1414
define('_TERRANET_NAVIGATION_', 1);
1515
}
1616

@@ -57,15 +57,15 @@ public function boot()
5757
public function register()
5858
{
5959
$this->app->bind('admin.navigation', function () {
60-
return new Manager(config('navigation.providers'));
60+
return new Manager;
6161
});
6262

6363
$this->app->singleton('command.navigation.table', function ($app) {
6464
return new NavigationTableCommand($app['files'], $app['composer']);
6565
});
6666

6767
$this->app->singleton('command.navigation.provider', function ($app) {
68-
return new ProviderMakeCommand($app['files'], $app['composer']);
68+
return new ProviderMakeCommand($app['files']);
6969
});
7070

7171
$this->commands(['command.navigation.table', 'command.navigation.provider']);

0 commit comments

Comments
 (0)