1 | <?php |
||
13 | abstract class AppServiceProvider extends AbstractServiceProvider implements BootableServiceProviderInterface |
||
14 | { |
||
15 | protected $provides = [ |
||
16 | 'environment', |
||
17 | 'base_path', |
||
18 | 'resources_path', |
||
19 | 'bootstrap_path', |
||
20 | ConversationManager::class, |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * Determine environment where application is currently is running on. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | abstract public function environment(): string; |
||
29 | |||
30 | /** |
||
31 | * Base path of the application. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | abstract public function basePath(): string; |
||
36 | |||
37 | /** |
||
38 | * Path to the "resources folder". |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | abstract public function resourcesPath(): string; |
||
43 | |||
44 | /** |
||
45 | * Method will be invoked on registration of a service provider implementing |
||
46 | * this interface. Provides ability for eager loading of Service Providers. |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | public function boot(): void |
||
57 | |||
58 | /** |
||
59 | * Use the register method to register items with the container via the |
||
60 | * protected $this->container property or the `getContainer` method |
||
61 | * from the ContainerAwareTrait. |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | public function register(): void |
||
76 | } |
||
77 |