App.php 9.6 KB

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