cleanup global context usage in widgets

This commit is contained in:
Kevin Papst
2020-08-18 11:39:41 +02:00
parent 08696651fd
commit 9597015413
29 changed files with 458 additions and 202 deletions

View File

@@ -16,11 +16,11 @@ class WidgetService
/**
* @var WidgetRendererInterface[]
*/
protected $renderer = [];
private $renderer = [];
/**
* @var WidgetRepository
*/
protected $repository;
private $repository;
/**
* @param WidgetRepository $repository
@@ -34,10 +34,6 @@ class WidgetService
$this->repository = $repository;
}
/**
* @param string $widget
* @return bool
*/
public function hasWidget(string $widget): bool
{
return $this->repository->has($widget);