Commit eabca28 1 parent 5527f57 commit eabca28 Copy full SHA for eabca28
File tree 1 file changed +8
-1
lines changed
packages/fractor/src/DependencyInjection
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace a9f \Fractor \DependencyInjection ;
6
6
7
+ use a9f \Fractor \Exception \ShouldNotHappenException ;
7
8
use a9f \FractorExtensionInstaller \Generated \InstalledPackages ;
8
9
use Symfony \Component \Config \FileLocator ;
9
10
use Symfony \Component \Console \DependencyInjection \AddConsoleCommandPass ;
@@ -60,7 +61,13 @@ private function collectConfigFilesFromExtensions(): array
60
61
}
61
62
62
63
foreach (InstalledPackages::PACKAGES as $ package ) {
63
- $ collectedConfigFiles [] = $ package ['path ' ] . '/config/application.php ' ;
64
+ $ configPath = $ package ['path ' ] . '/config/application.php ' ;
65
+
66
+ if (! is_readable ($ configPath )) {
67
+ throw new ShouldNotHappenException (sprintf ('Config file "%s" is not readable or does not exist. ' , $ configPath ));
68
+ }
69
+
70
+ $ collectedConfigFiles [] = $ configPath ;
64
71
}
65
72
66
73
return $ collectedConfigFiles ;
You can’t perform that action at this time.
0 commit comments