From 60e642e881e02ff2bf73cafb07b2891b707740b3 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 21 Jan 2016 15:55:29 +0100 Subject: [PATCH] Revert "Don't use force aliases loading" --- src/Generator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index a17a4b9..f6e73df 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -117,7 +117,7 @@ class Generator $this->interfaces['\Illuminate\Contracts\Auth\Authenticatable'] = config('auth.model', 'App\User'); try{ - if (class_exists('Auth', false) && is_a('Auth', '\Illuminate\Support\Facades\Auth', true)) { + if (class_exists('Auth') && is_a('Auth', '\Illuminate\Support\Facades\Auth', true)) { $authMethod = version_compare(Application::VERSION, '5.2', '>=') ? 'guard' : 'driver'; $class = get_class(\Auth::$authMethod()); $this->extra['Auth'] = array($class); @@ -126,7 +126,7 @@ class Generator }catch (\Exception $e) {} try{ - if (class_exists('DB', false) && is_a('DB', '\Illuminate\Support\Facades\DB', true)) { + if (class_exists('DB') && is_a('DB', '\Illuminate\Support\Facades\DB', true)) { $class = get_class(\DB::connection()); $this->extra['DB'] = array($class); $this->interfaces['\Illuminate\Database\ConnectionInterface'] = $class; @@ -134,7 +134,7 @@ class Generator }catch (\Exception $e) {} try{ - if (class_exists('Cache', false) && is_a('Cache', '\Illuminate\Support\Facades\Cache', true)) { + if (class_exists('Cache') && is_a('Cache', '\Illuminate\Support\Facades\Cache', true)) { $driver = get_class(\Cache::driver()); $store = get_class(\Cache::getStore()); $this->extra['Cache'] = array($driver, $store); @@ -143,7 +143,7 @@ class Generator }catch (\Exception $e) {} try{ - if (class_exists('Queue', false) && is_a('Queue', '\Illuminate\Support\Facades\Queue', true)) { + if (class_exists('Queue') && is_a('Queue', '\Illuminate\Support\Facades\Queue', true)) { $class = get_class(\Queue::connection()); $this->extra['Queue'] = array($class); $this->interfaces['\Illuminate\Queue\QueueInterface'] = $class; @@ -151,7 +151,7 @@ class Generator }catch (\Exception $e) {} try{ - if (class_exists('SSH', false) && is_a('SSH', '\Illuminate\Support\Facades\SSH', true)){ + if (class_exists('SSH') && is_a('SSH', '\Illuminate\Support\Facades\SSH', true)){ $class = get_class(\SSH::connection()); $this->extra['SSH'] = array($class); $this->interfaces['\Illuminate\Remote\ConnectionInterface'] = $class;