App.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Contracts\Foundation\Application loadEnvironmentFrom(string $file)
  5. * @method static \Illuminate\Support\ServiceProvider register(\Illuminate\Support\ServiceProvider|string $provider, bool $force = false)
  6. * @method static \Illuminate\Support\ServiceProvider resolveProvider(string $provider)
  7. * @method static array getProviders(\Illuminate\Support\ServiceProvider|string $provider)
  8. * @method static mixed make($abstract, array $parameters = [])
  9. * @method static mixed makeWith($abstract, array $parameters = [])
  10. * @method static bool configurationIsCached()
  11. * @method static bool hasBeenBootstrapped()
  12. * @method static bool isDownForMaintenance()
  13. * @method static bool isLocal()
  14. * @method static bool isProduction()
  15. * @method static bool routesAreCached()
  16. * @method static bool runningInConsole()
  17. * @method static bool runningUnitTests()
  18. * @method static bool shouldSkipMiddleware()
  19. * @method static string basePath(string $path = '')
  20. * @method static string bootstrapPath(string $path = '')
  21. * @method static string configPath(string $path = '')
  22. * @method static string databasePath(string $path = '')
  23. * @method static string detectEnvironment(callable $callback)
  24. * @method static string environmentFile()
  25. * @method static string environmentFilePath()
  26. * @method static string environmentPath()
  27. * @method static string getCachedConfigPath()
  28. * @method static string getCachedPackagesPath()
  29. * @method static string getCachedRoutesPath()
  30. * @method static string getCachedServicesPath()
  31. * @method static string getLocale()
  32. * @method static string currentLocale()
  33. * @method static string getNamespace()
  34. * @method static string resourcePath(string $path = '')
  35. * @method static string storagePath(string $path = '')
  36. * @method static string version()
  37. * @method static string|bool environment(string|array ...$environments)
  38. * @method static never abort(int $code, string $message = '', array $headers = [])
  39. * @method static void boot()
  40. * @method static void booted(callable $callback)
  41. * @method static void booting(callable $callback)
  42. * @method static void bootstrapWith(array $bootstrappers)
  43. * @method static void loadDeferredProviders()
  44. * @method static void registerConfiguredProviders()
  45. * @method static void registerDeferredProvider(string $provider, string $service = null)
  46. * @method static void setLocale(string $locale)
  47. * @method static void terminate()
  48. *
  49. * @see \Illuminate\Contracts\Foundation\Application
  50. */
  51. class App extends Facade
  52. {
  53. /**
  54. * Get the registered name of the component.
  55. *
  56. * @return string
  57. */
  58. protected static function getFacadeAccessor()
  59. {
  60. return 'app';
  61. }
  62. }