Skip to content

Commit

Permalink
Merge eb0363e into 920cde2
Browse files Browse the repository at this point in the history
  • Loading branch information
TullariS committed Jan 28, 2020
2 parents 920cde2 + eb0363e commit b56aa96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Blade.php
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Contracts\View\View;
use Illuminate\Events\Dispatcher;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Facade;
use Illuminate\View\Compilers\BladeCompiler;
use Illuminate\View\Factory;
use Illuminate\View\ViewServiceProvider;
Expand Down Expand Up @@ -59,6 +60,11 @@ public function directive(string $name, callable $handler)
{
$this->compiler->directive($name, $handler);
}

public function if($name, callable $callback)
{
$this->compiler->if($name, $callback);
}

public function exists($view): bool
{
Expand Down Expand Up @@ -120,5 +126,7 @@ protected function setupContainer(array $viewPaths, string $cachePath)
'view.compiled' => $cachePath,
];
}, true);

Facade::setFacadeApplication($this->container);
}
}

0 comments on commit b56aa96

Please sign in to comment.