Use config the get User model

See #136
This commit is contained in:
Barry vd. Heuvel
2014-11-29 13:11:10 +01:00
parent 736f2f387e
commit e2b59c6cb5
2 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -50,6 +50,10 @@ class Generator
$this->extra = array_merge($this->extra, $this->config->get('laravel-ide-helper::extra')); $this->extra = array_merge($this->extra, $this->config->get('laravel-ide-helper::extra'));
$this->magic = array_merge($this->magic, $this->config->get('laravel-ide-helper::magic')); $this->magic = array_merge($this->magic, $this->config->get('laravel-ide-helper::magic'));
$this->interfaces = array_merge($this->interfaces, $this->config->get('laravel-ide-helper::interfaces')); $this->interfaces = array_merge($this->interfaces, $this->config->get('laravel-ide-helper::interfaces'));
// Make all interface classes absolute
foreach ($this->interfaces as &$interface) {
$interface = '\\' . ltrim($interface, '\\');
}
$this->helpers = $helpers; $this->helpers = $helpers;
} }
@@ -150,10 +154,6 @@ class Generator
} }
}catch (\Exception $e) {} }catch (\Exception $e) {}
// Make all interface classes absolute
foreach ($this->interfaces as &$interface) {
$interface = '\\' . ltrim($interface, '\\');
}
} }
/** /**
+3 -1
View File
@@ -1,5 +1,7 @@
<?php <?php
use Illuminate\Support\Facades\Config;
return array( return array(
/* /*
@@ -84,7 +86,7 @@ return array(
*/ */
'interfaces' => array( 'interfaces' => array(
'\Illuminate\Auth\UserInterface' => '\User', '\Illuminate\Auth\UserInterface' => Config::get('auth.model', 'User'),
) )
); );