Skip to content

Commit cd00984

Browse files
author
vagrant
committed
fixing facades directory
1 parent 8ec4223 commit cd00984

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

src/Facades/StringBlade.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace Wpb\String_Blade_Compiler\Facades;
4+
5+
use Illuminate\Support\Facades\Facade;
6+
use Wpb\String_Blade_Compiler\Compilers\StringBladeCompiler;
7+
8+
/**
9+
* @method static bool exists(string $view)
10+
* @method static \Illuminate\Contracts\View\View file(string $path, array $data = [], array $mergeData = [])
11+
* @method static \Illuminate\Contracts\View\View make(string $view, array $data = [], array $mergeData = [])
12+
* @method static mixed share(array|string $key, $value = null)
13+
* @method static array composer(array|string $views, \Closure|string $callback)
14+
* @method static array creator(array|string $views, \Closure|string $callback)
15+
* @method static \Illuminate\Contracts\View\Factory addNamespace(string $namespace, string|array $hints)
16+
* @method static \Illuminate\Contracts\View\Factory replaceNamespace(string $namespace, string|array $hints)
17+
*
18+
* @see StringBladeCompiler
19+
*/
20+
class StringBlade extends Facade
21+
{
22+
/**
23+
* Get the registered name of the component.
24+
*
25+
* @return string
26+
*/
27+
protected static function getFacadeAccessor()
28+
{
29+
return app('view')->getEngineResolver()->resolve('stringblade')->getCompiler();
30+
//return static::$app['view']->getEngineResolver()->resolve('stringblade')->getCompiler();
31+
}
32+
}

0 commit comments

Comments
 (0)