Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit 2e7f954

Browse files
authored
Revert to Blade facade
1 parent 5eb433e commit 2e7f954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FontAwesomeServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Jerodev\LaraFontAwesome;
44

5-
use Illuminate\View\Compilers\BladeCompiler;
5+
use Illuminate\Support\Facades\Blade;
66
use Illuminate\Support\ServiceProvider;
77
use Jerodev\LaraFontAwesome\Middleware\InjectStyleSheet;
88

@@ -23,12 +23,12 @@ public function boot()
2323

2424
private function registerBladeDirectives()
2525
{
26-
BladeCompiler::directive('fa', function ($expression) {
26+
Blade::directive('fa', function ($expression) {
2727
return BladeRenderer::renderGeneric($expression);
2828
});
2929

3030
foreach (config('fontawesome.libraries') as $library) {
31-
BladeCompiler::directive('fa' . $library[0], function ($expression) use ($library) {
31+
Blade::directive('fa' . $library[0], function ($expression) use ($library) {
3232
return BladeRenderer::renderWithLibrary($expression, $library);
3333
});
3434
}

0 commit comments

Comments
 (0)