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 +}