1 | <?php |
||
10 | abstract class AppServiceProvider extends AbstractServiceProvider |
||
11 | { |
||
12 | protected $provides = [ |
||
13 | Config::class, |
||
14 | 'env', |
||
15 | 'base_path', |
||
16 | 'resources_path', |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * Determine environment where application is currently is running on. |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | abstract public function environment(): string; |
||
25 | |||
26 | /** |
||
27 | * Base path of the application. |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | abstract public function basePath(): string; |
||
32 | |||
33 | /** |
||
34 | * Path to the "resources folder". |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | abstract public function resourcesPath(): string; |
||
39 | |||
40 | /** |
||
41 | * Use the register method to register items with the container via the |
||
42 | * protected $this->container property or the `getContainer` method |
||
43 | * from the ContainerAwareTrait. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function register(): void |
||
59 | } |
||
60 |