Skip to content

Commit

Permalink
Use new widget options
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Miertsch committed Mar 7, 2015
1 parent d0654b3 commit 71d162a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
'controller' => 'Prooph\Link\ProcessManager\Controller\DashboardWidget',
'order' => 100 //100 - 200 config order range
]

],
'view_manager' => array(
'template_map' => [
Expand Down
9 changes: 5 additions & 4 deletions src/Controller/DashboardWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ public function widgetAction()
if (count($this->systemConfig->getConnectors()) === 0) return false;

return DashboardWidget::initialize(
'prooph.link.process-manager/dashboard/widget',
'Process Manager',
4,
['processingConfig' => $this->systemConfig]
$this->widgetConfig->get('template', 'prooph.link.process-manager/dashboard/widget'),
$this->widgetConfig->get('title', 'Process Manager'),
$this->widgetConfig->get('cols', 4),
['processingConfig' => $this->systemConfig],
$this->widgetConfig->get('group_title')
);
}
}
Expand Down

0 comments on commit 71d162a

Please sign in to comment.