App.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static string version()
  5. * @method static void bootstrapWith(string[] $bootstrappers)
  6. * @method static void afterLoadingEnvironment(\Closure $callback)
  7. * @method static void beforeBootstrapping(string $bootstrapper, \Closure $callback)
  8. * @method static void afterBootstrapping(string $bootstrapper, \Closure $callback)
  9. * @method static bool hasBeenBootstrapped()
  10. * @method static \Illuminate\Foundation\Application setBasePath(string $basePath)
  11. * @method static string path(string $path = '')
  12. * @method static \Illuminate\Foundation\Application useAppPath(string $path)
  13. * @method static string basePath(string $path = '')
  14. * @method static string bootstrapPath(string $path = '')
  15. * @method static \Illuminate\Foundation\Application useBootstrapPath(string $path)
  16. * @method static string configPath(string $path = '')
  17. * @method static \Illuminate\Foundation\Application useConfigPath(string $path)
  18. * @method static string databasePath(string $path = '')
  19. * @method static \Illuminate\Foundation\Application useDatabasePath(string $path)
  20. * @method static string langPath(string $path = '')
  21. * @method static \Illuminate\Foundation\Application useLangPath(string $path)
  22. * @method static string publicPath(string $path = '')
  23. * @method static \Illuminate\Foundation\Application usePublicPath(string $path)
  24. * @method static string storagePath(string $path = '')
  25. * @method static \Illuminate\Foundation\Application useStoragePath(string $path)
  26. * @method static string resourcePath(string $path = '')
  27. * @method static string viewPath(string $path = '')
  28. * @method static string joinPaths(string $basePath, string $path = '')
  29. * @method static string environmentPath()
  30. * @method static \Illuminate\Foundation\Application useEnvironmentPath(string $path)
  31. * @method static \Illuminate\Foundation\Application loadEnvironmentFrom(string $file)
  32. * @method static string environmentFile()
  33. * @method static string environmentFilePath()
  34. * @method static string|bool environment(string|array ...$environments)
  35. * @method static bool isLocal()
  36. * @method static bool isProduction()
  37. * @method static string detectEnvironment(\Closure $callback)
  38. * @method static bool runningInConsole()
  39. * @method static bool runningConsoleCommand(string|array ...$commands)
  40. * @method static bool runningUnitTests()
  41. * @method static bool hasDebugModeEnabled()
  42. * @method static void registerConfiguredProviders()
  43. * @method static \Illuminate\Support\ServiceProvider register(\Illuminate\Support\ServiceProvider|string $provider, bool $force = false)
  44. * @method static \Illuminate\Support\ServiceProvider|null getProvider(\Illuminate\Support\ServiceProvider|string $provider)
  45. * @method static array getProviders(\Illuminate\Support\ServiceProvider|string $provider)
  46. * @method static \Illuminate\Support\ServiceProvider resolveProvider(string $provider)
  47. * @method static void loadDeferredProviders()
  48. * @method static void loadDeferredProvider(string $service)
  49. * @method static void registerDeferredProvider(string $provider, string|null $service = null)
  50. * @method static mixed make(string $abstract, array $parameters = [])
  51. * @method static bool bound(string $abstract)
  52. * @method static bool isBooted()
  53. * @method static void boot()
  54. * @method static void booting(callable $callback)
  55. * @method static void booted(callable $callback)
  56. * @method static \Symfony\Component\HttpFoundation\Response handle(\Symfony\Component\HttpFoundation\Request $request, int $type = 1, bool $catch = true)
  57. * @method static bool shouldSkipMiddleware()
  58. * @method static string getCachedServicesPath()
  59. * @method static string getCachedPackagesPath()
  60. * @method static bool configurationIsCached()
  61. * @method static string getCachedConfigPath()
  62. * @method static bool routesAreCached()
  63. * @method static string getCachedRoutesPath()
  64. * @method static bool eventsAreCached()
  65. * @method static string getCachedEventsPath()
  66. * @method static \Illuminate\Foundation\Application addAbsoluteCachePathPrefix(string $prefix)
  67. * @method static \Illuminate\Contracts\Foundation\MaintenanceMode maintenanceMode()
  68. * @method static bool isDownForMaintenance()
  69. * @method static never abort(int $code, string $message = '', array $headers = [])
  70. * @method static \Illuminate\Foundation\Application terminating(callable|string $callback)
  71. * @method static void terminate()
  72. * @method static array getLoadedProviders()
  73. * @method static bool providerIsLoaded(string $provider)
  74. * @method static array getDeferredServices()
  75. * @method static void setDeferredServices(array $services)
  76. * @method static void addDeferredServices(array $services)
  77. * @method static bool isDeferredService(string $service)
  78. * @method static void provideFacades(string $namespace)
  79. * @method static string getLocale()
  80. * @method static string currentLocale()
  81. * @method static string getFallbackLocale()
  82. * @method static void setLocale(string $locale)
  83. * @method static void setFallbackLocale(string $fallbackLocale)
  84. * @method static bool isLocale(string $locale)
  85. * @method static void registerCoreContainerAliases()
  86. * @method static void flush()
  87. * @method static string getNamespace()
  88. * @method static \Illuminate\Contracts\Container\ContextualBindingBuilder when(array|string $concrete)
  89. * @method static bool has(string $id)
  90. * @method static bool isShared(string $abstract)
  91. * @method static bool isAlias(string $name)
  92. * @method static void bind(string $abstract, \Closure|string|null $concrete = null, bool $shared = false)
  93. * @method static bool hasMethodBinding(string $method)
  94. * @method static void bindMethod(array|string $method, \Closure $callback)
  95. * @method static mixed callMethodBinding(string $method, mixed $instance)
  96. * @method static void addContextualBinding(string $concrete, string $abstract, \Closure|string $implementation)
  97. * @method static void bindIf(string $abstract, \Closure|string|null $concrete = null, bool $shared = false)
  98. * @method static void singleton(string $abstract, \Closure|string|null $concrete = null)
  99. * @method static void singletonIf(string $abstract, \Closure|string|null $concrete = null)
  100. * @method static void scoped(string $abstract, \Closure|string|null $concrete = null)
  101. * @method static void scopedIf(string $abstract, \Closure|string|null $concrete = null)
  102. * @method static void extend(string $abstract, \Closure $closure)
  103. * @method static mixed instance(string $abstract, mixed $instance)
  104. * @method static void tag(array|string $abstracts, array|mixed $tags)
  105. * @method static iterable tagged(string $tag)
  106. * @method static void alias(string $abstract, string $alias)
  107. * @method static mixed rebinding(string $abstract, \Closure $callback)
  108. * @method static mixed refresh(string $abstract, mixed $target, string $method)
  109. * @method static \Closure wrap(\Closure $callback, array $parameters = [])
  110. * @method static mixed call(callable|string $callback, array $parameters = [], string|null $defaultMethod = null)
  111. * @method static \Closure factory(string $abstract)
  112. * @method static mixed makeWith(string|callable $abstract, array $parameters = [])
  113. * @method static mixed get(string $id)
  114. * @method static mixed build(\Closure|string $concrete)
  115. * @method static void beforeResolving(\Closure|string $abstract, \Closure|null $callback = null)
  116. * @method static void resolving(\Closure|string $abstract, \Closure|null $callback = null)
  117. * @method static void afterResolving(\Closure|string $abstract, \Closure|null $callback = null)
  118. * @method static array getBindings()
  119. * @method static string getAlias(string $abstract)
  120. * @method static void forgetExtenders(string $abstract)
  121. * @method static void forgetInstance(string $abstract)
  122. * @method static void forgetInstances()
  123. * @method static void forgetScopedInstances()
  124. * @method static \Illuminate\Foundation\Application getInstance()
  125. * @method static \Illuminate\Contracts\Container\Container|\Illuminate\Foundation\Application setInstance(\Illuminate\Contracts\Container\Container|null $container = null)
  126. * @method static void macro(string $name, object|callable $macro)
  127. * @method static void mixin(object $mixin, bool $replace = true)
  128. * @method static bool hasMacro(string $name)
  129. * @method static void flushMacros()
  130. *
  131. * @see \Illuminate\Foundation\Application
  132. */
  133. class App extends Facade
  134. {
  135. /**
  136. * Get the registered name of the component.
  137. *
  138. * @return string
  139. */
  140. protected static function getFacadeAccessor()
  141. {
  142. return 'app';
  143. }
  144. }