Blade.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static void compile(string|null $path = null)
  5. * @method static string getPath()
  6. * @method static void setPath(string $path)
  7. * @method static string compileString(string $value)
  8. * @method static string render(string $string, array $data = [], bool $deleteCachedView = false)
  9. * @method static string renderComponent(\Illuminate\View\Component $component)
  10. * @method static string stripParentheses(string $expression)
  11. * @method static void extend(callable $compiler)
  12. * @method static array getExtensions()
  13. * @method static void if(string $name, callable $callback)
  14. * @method static bool check(string $name, mixed ...$parameters)
  15. * @method static void component(string $class, string|null $alias = null, string $prefix = '')
  16. * @method static void components(array $components, string $prefix = '')
  17. * @method static array getClassComponentAliases()
  18. * @method static void anonymousComponentPath(string $path, string|null $prefix = null)
  19. * @method static void anonymousComponentNamespace(string $directory, string|null $prefix = null)
  20. * @method static void componentNamespace(string $namespace, string $prefix)
  21. * @method static array getAnonymousComponentPaths()
  22. * @method static array getAnonymousComponentNamespaces()
  23. * @method static array getClassComponentNamespaces()
  24. * @method static void aliasComponent(string $path, string|null $alias = null)
  25. * @method static void include(string $path, string|null $alias = null)
  26. * @method static void aliasInclude(string $path, string|null $alias = null)
  27. * @method static void directive(string $name, callable $handler)
  28. * @method static array getCustomDirectives()
  29. * @method static \Illuminate\View\Compilers\BladeCompiler prepareStringsForCompilationUsing(callable $callback)
  30. * @method static void precompiler(callable $precompiler)
  31. * @method static void setEchoFormat(string $format)
  32. * @method static void withDoubleEncoding()
  33. * @method static void withoutDoubleEncoding()
  34. * @method static void withoutComponentTags()
  35. * @method static string getCompiledPath(string $path)
  36. * @method static bool isExpired(string $path)
  37. * @method static string newComponentHash(string $component)
  38. * @method static string compileClassComponentOpening(string $component, string $alias, string $data, string $hash)
  39. * @method static string compileEndComponentClass()
  40. * @method static mixed sanitizeComponentAttribute(mixed $value)
  41. * @method static string compileEndOnce()
  42. * @method static void stringable(string|callable $class, callable|null $handler = null)
  43. * @method static string compileEchos(string $value)
  44. * @method static string applyEchoHandler(string $value)
  45. *
  46. * @see \Illuminate\View\Compilers\BladeCompiler
  47. */
  48. class Blade extends Facade
  49. {
  50. /**
  51. * Get the registered name of the component.
  52. *
  53. * @return string
  54. */
  55. protected static function getFacadeAccessor()
  56. {
  57. return 'blade.compiler';
  58. }
  59. }