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->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'));
// Make all interface classes absolute
foreach ($this->interfaces as &$interface) {
$interface = '\\' . ltrim($interface, '\\');
}
$this->helpers = $helpers;
}
@@ -150,10 +154,6 @@ class Generator
}
}catch (\Exception $e) {}
// Make all interface classes absolute
foreach ($this->interfaces as &$interface) {
$interface = '\\' . ltrim($interface, '\\');
}
}
/**
+4 -2
View File
@@ -1,4 +1,6 @@
<?php
<?php
use Illuminate\Support\Facades\Config;
return array(
@@ -84,7 +86,7 @@ return array(
*/
'interfaces' => array(
'\Illuminate\Auth\UserInterface' => '\User',
'\Illuminate\Auth\UserInterface' => Config::get('auth.model', 'User'),
)
);