config files
amirsobhani opened this issue · comments
Amir Sobhani commented
Instead of manually introducing the Config files, it is enough to add the following code:
if (File::exists($modulePath . "Configs")) { foreach (Finder::create()->in($modulePath . 'Configs')->name('*.php') as $file) { $this->mergeConfigFrom( $file->getRealPath() , basename($file->getRealPath(), '.php') ); } }