Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
- Compatibility with nette 2.2.*
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jun 22, 2015
1 parent d0a84d7 commit 6125111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IPub/Widgets/DI/WidgetsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function loadConfiguration()
$builder->addDefinition($this->prefix('widgets.component'))
->setClass(Components\Control::CLASSNAME)
->setImplement(Components\IControl::CLASSNAME)
->setArguments([new Nette\PhpGenerator\PhpLiteral('$position')])
->setInject(TRUE)
->addTag('cms.widgets');

Expand Down Expand Up @@ -163,4 +164,4 @@ public static function register(Nette\Configurator $config, $extensionName = 'wi
$compiler->addExtension($extensionName, new WidgetsExtension());
};
}
}
}

0 comments on commit 6125111

Please sign in to comment.