Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Foundation/Application.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Foundation;
4
5 use Illuminate\Contracts\Container\Container;
6
7 interface Application extends Container
8 {
9 /**
10 * Get the version number of the application.
11 *
12 * @return string
13 */
14 public function version();
15
16 /**
17 * Get the base path of the Laravel installation.
18 *
19 * @param string $path
20 * @return string
21 */
22 public function basePath($path = '');
23
24 /**
25 * Get the path to the bootstrap directory.
26 *
27 * @param string $path
28 * @return string
29 */
30 public function bootstrapPath($path = '');
31
32 /**
33 * Get the path to the application configuration files.
34 *
35 * @param string $path
36 * @return string
37 */
38 public function configPath($path = '');
39
40 /**
41 * Get the path to the database directory.
42 *
43 * @param string $path
44 * @return string
45 */
46 public function databasePath($path = '');
47
48 /**
49 * Get the path to the language files.
50 *
51 * @param string $path
52 * @return string
53 */
54 public function langPath($path = '');
55
56 /**
57 * Get the path to the public directory.
58 *
59 * @param string $path
60 * @return string
61 */
62 public function publicPath($path = '');
63
64 /**
65 * Get the path to the resources directory.
66 *
67 * @param string $path
68 * @return string
69 */
70 public function resourcePath($path = '');
71
72 /**
73 * Get the path to the storage directory.
74 *
75 * @param string $path
76 * @return string
77 */
78 public function storagePath($path = '');
79
80 /**
81 * Get or check the current application environment.
82 *
83 * @param string|array ...$environments
84 * @return string|bool
85 */
86 public function environment(...$environments);
87
88 /**
89 * Determine if the application is running in the console.
90 *
91 * @return bool
92 */
93 public function runningInConsole();
94
95 /**
96 * Determine if the application is running unit tests.
97 *
98 * @return bool
99 */
100 public function runningUnitTests();
101
102 /**
103 * Determine if the application is running with debug mode enabled.
104 *
105 * @return bool
106 */
107 public function hasDebugModeEnabled();
108
109 /**
110 * Get an instance of the maintenance mode manager implementation.
111 *
112 * @return \Illuminate\Contracts\Foundation\MaintenanceMode
113 */
114 public function maintenanceMode();
115
116 /**
117 * Determine if the application is currently down for maintenance.
118 *
119 * @return bool
120 */
121 public function isDownForMaintenance();
122
123 /**
124 * Register all of the configured providers.
125 *
126 * @return void
127 */
128 public function registerConfiguredProviders();
129
130 /**
131 * Register a service provider with the application.
132 *
133 * @param \Illuminate\Support\ServiceProvider|string $provider
134 * @param bool $force
135 * @return \Illuminate\Support\ServiceProvider
136 */
137 public function register($provider, $force = false);
138
139 /**
140 * Register a deferred provider and service.
141 *
142 * @param string $provider
143 * @param string|null $service
144 * @return void
145 */
146 public function registerDeferredProvider($provider, $service = null);
147
148 /**
149 * Resolve a service provider instance from the class name.
150 *
151 * @param string $provider
152 * @return \Illuminate\Support\ServiceProvider
153 */
154 public function resolveProvider($provider);
155
156 /**
157 * Boot the application's service providers.
158 *
159 * @return void
160 */
161 public function boot();
162
163 /**
164 * Register a new boot listener.
165 *
166 * @param callable $callback
167 * @return void
168 */
169 public function booting($callback);
170
171 /**
172 * Register a new "booted" listener.
173 *
174 * @param callable $callback
175 * @return void
176 */
177 public function booted($callback);
178
179 /**
180 * Run the given array of bootstrap classes.
181 *
182 * @param array $bootstrappers
183 * @return void
184 */
185 public function bootstrapWith(array $bootstrappers);
186
187 /**
188 * Get the current application locale.
189 *
190 * @return string
191 */
192 public function getLocale();
193
194 /**
195 * Get the application namespace.
196 *
197 * @return string
198 *
199 * @throws \RuntimeException
200 */
201 public function getNamespace();
202
203 /**
204 * Get the registered service provider instances if any exist.
205 *
206 * @param \Illuminate\Support\ServiceProvider|string $provider
207 * @return array
208 */
209 public function getProviders($provider);
210
211 /**
212 * Determine if the application has been bootstrapped before.
213 *
214 * @return bool
215 */
216 public function hasBeenBootstrapped();
217
218 /**
219 * Load and boot all of the remaining deferred providers.
220 *
221 * @return void
222 */
223 public function loadDeferredProviders();
224
225 /**
226 * Set the current application locale.
227 *
228 * @param string $locale
229 * @return void
230 */
231 public function setLocale($locale);
232
233 /**
234 * Determine if middleware has been disabled for the application.
235 *
236 * @return bool
237 */
238 public function shouldSkipMiddleware();
239
240 /**
241 * Register a terminating callback with the application.
242 *
243 * @param callable|string $callback
244 * @return \Illuminate\Contracts\Foundation\Application
245 */
246 public function terminating($callback);
247
248 /**
249 * Terminate the application.
250 *
251 * @return void
252 */
253 public function terminate();
254 }