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
@@ -237,6 +237,8 @@ class Generator
'Storage' => 'Illuminate\Support\Facades\Storage',
//'Validator' => 'Illuminate\Support\Facades\Validator',
];
$facades = array_merge($facades, $this->config->get('app.aliases', []));
// Only return the ones that actually exist
return array_filter($facades, function($alias){