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