1 | <?php |
||
15 | class ModularServiceProvider extends ServiceProvider |
||
16 | { |
||
17 | /** |
||
18 | * @var Collection|array |
||
19 | */ |
||
20 | protected $filesToPublish = []; |
||
21 | |||
22 | /** |
||
23 | * Register the service provider. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function register() |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function provides() |
||
70 | |||
71 | /** |
||
72 | * Get files that should be published |
||
73 | * |
||
74 | * @return Collection |
||
75 | */ |
||
76 | protected function getFilesToPublish() |
||
86 | |||
87 | /** |
||
88 | * Add configuration file to published files |
||
89 | * |
||
90 | * @return $this |
||
91 | */ |
||
92 | protected function addConfigurationToPublished() |
||
100 | |||
101 | /** |
||
102 | * Add stubs templates to published files |
||
103 | * |
||
104 | * @return $this |
||
105 | */ |
||
106 | protected function addStubsTemplatesToPublished() |
||
123 | |||
124 | /** |
||
125 | * Add app files to published files |
||
126 | * |
||
127 | * @return $this |
||
128 | */ |
||
129 | protected function addAppFilesToPublished() |
||
140 | |||
141 | /** |
||
142 | * Get stub templates directory |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | protected function getTemplatesStubsPath() |
||
150 | |||
151 | /** |
||
152 | * Get default configuration file path |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getDefaultConfigFilePath($configName) |
||
160 | |||
161 | /** |
||
162 | * Get sample app path |
||
163 | * |
||
164 | * @return string |
||
165 | */ |
||
166 | protected function getAppSamplePath() |
||
170 | |||
171 | /** |
||
172 | * Set migrations paths for all active modules |
||
173 | */ |
||
174 | protected function setModulesMigrationPaths() |
||
187 | } |
||
188 |