From 6125111770ee0cc000d895cd57621c81010445e4 Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Mon, 22 Jun 2015 09:41:31 +0200 Subject: [PATCH] - Compatibility with nette 2.2.* --- src/IPub/Widgets/DI/WidgetsExtension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IPub/Widgets/DI/WidgetsExtension.php b/src/IPub/Widgets/DI/WidgetsExtension.php index 53fab7f..654d267 100644 --- a/src/IPub/Widgets/DI/WidgetsExtension.php +++ b/src/IPub/Widgets/DI/WidgetsExtension.php @@ -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'); @@ -163,4 +164,4 @@ public static function register(Nette\Configurator $config, $extensionName = 'wi $compiler->addExtension($extensionName, new WidgetsExtension()); }; } -} \ No newline at end of file +}