Look for additional facade aliases in app config array

In my Lumen app, I load my providers and aliases from a `config/app.php` file like in Laravel. Maybe that is uncommon, but this simple PR will include those aliases as well if any are present.
This commit is contained in:
Chris Nanney
2016-03-29 14:56:12 -05:00
parent e97ed532f0
commit d818b72f82
+2
View File
@@ -238,6 +238,8 @@ class Generator
//'Validator' => 'Illuminate\Support\Facades\Validator', //'Validator' => 'Illuminate\Support\Facades\Validator',
]; ];
$facades = array_merge($facades, $this->config->get('app.aliases', []));
// Only return the ones that actually exist // Only return the ones that actually exist
return array_filter($facades, function($alias){ return array_filter($facades, function($alias){
return class_exists($alias); return class_exists($alias);