Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | abstract class BaseFileLoader |
||
10 | { |
||
11 | /** |
||
12 | * Instance of Application |
||
13 | * |
||
14 | * @var \Illuminate\Contracts\Foundation\Application $app |
||
15 | */ |
||
16 | protected $app; |
||
17 | |||
18 | /** |
||
19 | * Instance of the repository |
||
20 | * |
||
21 | * @var \LaravelModulize\Contracts\ModulizerRepositoryInterface |
||
22 | */ |
||
23 | protected $repo; |
||
24 | |||
25 | /** |
||
26 | * Construct the RoutesLoader |
||
27 | * |
||
28 | * @param \LaravelModulize\Contracts\ModulizerRepositoryInterface $repository |
||
29 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
30 | */ |
||
31 | public function __construct(ModulizerRepositoryInterface $repository, Application $app) |
||
32 | { |
||
33 | $this->app = $app; |
||
34 | $this->repo = $repository; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Go through each of the module and load the necesary files |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function bootstrap(): void |
||
46 | }); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Retrieve the collection of files found for the given module |
||
51 | * |
||
52 | * @param string $module |
||
53 | * @return \Illuminate\Support\Collection |
||
54 | */ |
||
55 | public function getFilesToLoad(string $module): Collection |
||
63 | ); |
||
64 | } |
||
66 |