Skip to content

Commit

Permalink
Move callAfterResolving to register
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 9, 2020
1 parent 2d39b96 commit bdd6e59
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/BladeIconsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace BladeUI\Icons;

use Illuminate\Contracts\View\Factory as ViewFactory;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Blade;
Expand All @@ -19,7 +20,6 @@ public function register(): void

public function boot(): void
{
$this->bootComponents();
$this->bootDirectives();
$this->bootPublishing();
}
Expand All @@ -44,11 +44,8 @@ private function registerFactory(): void

return $factory;
});
}

private function bootComponents(): void
{
$this->callAfterResolving('view', function ($view, Application $app) {
$this->callAfterResolving(ViewFactory::class, function ($view, Application $app) {
$app->make(Factory::class)->registerComponents();
});
}
Expand Down

0 comments on commit bdd6e59

Please sign in to comment.