orangehill/iseed

lumen Call to undefined method Laravel\Lumen\Application::booting()

nece001 opened this issue · 2 comments

In Lumen, I have this error:
Call to undefined method Laravel\Lumen\Application::booting()

:(

same here

solution

vi ./bootstrap/app.php
$app->register(Orangehill\Iseed\IseedServiceProvider::class);
php artisan config:cache
composer dump-auto

vi ./vendor/orangehill/iseed/src/Orangehill/Iseed/IseedServiceProvider.php

     $this->app->make(Facades\Iseed::class);

      /*$this->app->booting(function() {
          $loader = \Illuminate\Foundation\AliasLoader::getInstance();
          $loader->alias('Iseed', 'Orangehill\Iseed\Facades\Iseed');
      });*/

vi Orangehill/Iseed/IseedCommand.php
change use file_exists instead of \File::exists