Blade.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 bindDirective(string $name, callable $handler)
  28. * @method static void directive(string $name, callable $handler, bool $bind = false)
  29. * @method static array getCustomDirectives()
  30. * @method static \Illuminate\View\Compilers\BladeCompiler prepareStringsForCompilationUsing(callable $callback)
  31. * @method static void precompiler(callable $precompiler)
  32. * @method static string usingEchoFormat(string $format, callable $callback)
  33. * @method static void setEchoFormat(string $format)
  34. * @method static void withDoubleEncoding()
  35. * @method static void withoutDoubleEncoding()
  36. * @method static void withoutComponentTags()
  37. * @method static string getCompiledPath(string $path)
  38. * @method static bool isExpired(string $path)
  39. * @method static string newComponentHash(string $component)
  40. * @method static string compileClassComponentOpening(string $component, string $alias, string $data, string $hash)
  41. * @method static string compileEndComponentClass()
  42. * @method static mixed sanitizeComponentAttribute(mixed $value)
  43. * @method static string compileEndOnce()
  44. * @method static void stringable(string|callable $class, callable|null $handler = null)
  45. * @method static string compileEchos(string $value)
  46. * @method static string applyEchoHandler(string $value)
  47. *
  48. * @see \Illuminate\View\Compilers\BladeCompiler
  49. */
  50. class Blade extends Facade
  51. {
  52. /**
  53. * Get the registered name of the component.
  54. *
  55. * @return string
  56. */
  57. protected static function getFacadeAccessor()
  58. {
  59. return 'blade.compiler';
  60. }
  61. }