@@ 84-102 (lines=19) @@ | ||
81 | */ |
|
82 | private function findSeedersClasses(array $directories, $seedersClasses) |
|
83 | { |
|
84 | foreach ($directories as $directory) { |
|
85 | ||
86 | if (File::isDirectory($directory)) { |
|
87 | ||
88 | $files = File::allFiles($directory); |
|
89 | ||
90 | foreach ($files as $seederClass) { |
|
91 | ||
92 | if (File::isFile($seederClass)) { |
|
93 | ||
94 | // do not seed the classes now, just store them in a collection and w |
|
95 | $seedersClasses->push( |
|
96 | ShipButler::getClassFullNameFromFile( |
|
97 | $seederClass->getPathname()) |
|
98 | ); |
|
99 | } |
|
100 | } |
|
101 | } |
|
102 | } |
|
103 | ||
104 | return $seedersClasses; |
|
105 | } |
@@ 43-56 (lines=14) @@ | ||
40 | ||
41 | $files = File::allFiles($directory); |
|
42 | ||
43 | foreach ($files as $file) { |
|
44 | ||
45 | if (File::isFile($file)) { |
|
46 | ||
47 | // Check if this is the Main Service Provider |
|
48 | if (ShipButler::stringStartsWith($file->getFilename(), $mainServiceProviderNameStartWith)) { |
|
49 | ||
50 | $serviceProviderClass = ShipButler::getClassFullNameFromFile($file->getPathname()); |
|
51 | ||
52 | $this->loadProvider($serviceProviderClass); |
|
53 | } |
|
54 | } |
|
55 | } |
|
56 | } |
|
57 | } |
|
58 | ||
59 | /** |