Skip to content

Commit

Permalink
Merge pull request #6 from Alegzander/fix-bootstrap
Browse files Browse the repository at this point in the history
removed getModuleNested method, because its broken
  • Loading branch information
Yan committed Jun 3, 2016
2 parents 9978b43 + d63c0ac commit d443018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Bootstrap implements \yii\base\BootstrapInterface
public function bootstrap($app)
{
/** @var $module Module */
if ($app->hasModule('oauth2') && $module = $app->getModule('oauth2') instanceof Module) {
if ($app->hasModule('oauth2') && ($module = $app->getModule('oauth2')) instanceof Module) {
$this->_modelMap = array_merge($this->_modelMap, $module->modelMap);
foreach ($this->_modelMap as $name => $definition) {
\Yii::$container->set("filsh\\yii2\\oauth2server\\models\\" . $name, $definition);
Expand Down

0 comments on commit d443018

Please sign in to comment.