1 | <?php |
||
26 | class ThemeWidgetsGenerator implements GeneratorInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var FormFactoryInterface |
||
30 | */ |
||
31 | protected $formFactory; |
||
32 | |||
33 | /** |
||
34 | * @var FactoryInterface |
||
35 | */ |
||
36 | protected $widgetModelFactory; |
||
37 | |||
38 | /** |
||
39 | * @var RepositoryInterface |
||
40 | */ |
||
41 | protected $widgetModelRepository; |
||
42 | |||
43 | /** |
||
44 | * @var ContainerWidgetFactoryInterface |
||
45 | */ |
||
46 | protected $containerWidgetFactory; |
||
47 | |||
48 | /** |
||
49 | * @var ContainerProviderInterface |
||
50 | */ |
||
51 | protected $containerProvider; |
||
52 | |||
53 | /** |
||
54 | * ThemeWidgetsGenerator constructor. |
||
55 | * |
||
56 | * @param FormFactoryInterface $formFactory |
||
57 | * @param FactoryInterface $widgetModelFactory |
||
58 | * @param RepositoryInterface $widgetModelRepository |
||
59 | * @param ContainerWidgetFactoryInterface $containerWidgetFactory |
||
60 | * @param ContainerProviderInterface $containerProvider |
||
61 | */ |
||
62 | public function __construct(FormFactoryInterface $formFactory, FactoryInterface $widgetModelFactory, RepositoryInterface $widgetModelRepository, ContainerWidgetFactoryInterface $containerWidgetFactory, ContainerProviderInterface $containerProvider) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function generate(array $widgets): void |
||
94 | |||
95 | /** |
||
96 | * @param array $widgetData |
||
97 | * |
||
98 | * @return mixed |
||
99 | * |
||
100 | * @throws \Exception |
||
101 | */ |
||
102 | protected function createWidget(array $widgetData) |
||
113 | |||
114 | /** |
||
115 | * @param $widget |
||
116 | * @param $containers |
||
117 | */ |
||
118 | protected function linkWidgets($widget, $containers) |
||
132 | } |
||
133 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.