Blade.php 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static void compile($path = null)
  5. * @method static string getPath()
  6. * @method static void setPath($path)
  7. * @method static string compileString($value)
  8. * @method static string stripParentheses($expression)
  9. * @method static void extend(callable $compiler)
  10. * @method static array getExtensions()
  11. * @method static void if($name, callable $callback)
  12. * @method static bool check($name, ...$parameters)
  13. * @method static void component($path, $alias = null)
  14. * @method static void include($path, $alias = null)
  15. * @method static void directive($name, callable $handler)
  16. * @method static array getCustomDirectives()
  17. * @method static void setEchoFormat($format)
  18. * @method static void withDoubleEncoding()
  19. * @method static void withoutDoubleEncoding()
  20. *
  21. * @see \Illuminate\View\Compilers\BladeCompiler
  22. */
  23. class Blade extends Facade
  24. {
  25. /**
  26. * Get the registered name of the component.
  27. *
  28. * @return string
  29. */
  30. protected static function getFacadeAccessor()
  31. {
  32. return static::$app['view']->getEngineResolver()->resolve('blade')->getCompiler();
  33. }
  34. }