From d818b72f821b67bacfe420cb0f0c10f286ea69d1 Mon Sep 17 00:00:00 2001 From: Chris Nanney Date: Tue, 29 Mar 2016 14:56:12 -0500 Subject: [PATCH] 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. --- src/Generator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Generator.php b/src/Generator.php index 8fedc23..686b3f5 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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){