1 | <?php |
||
12 | class WidgetsRegistry implements WidgetsRegistryInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Collection|WidgetInterface[] |
||
16 | */ |
||
17 | protected $widgets; |
||
18 | |||
19 | /** |
||
20 | * @var Container |
||
21 | */ |
||
22 | private $container; |
||
23 | |||
24 | /** |
||
25 | * BlocksRegistry constructor. |
||
26 | * |
||
27 | * @param Container $container |
||
28 | */ |
||
29 | public function __construct(Container $container) |
||
34 | |||
35 | /** |
||
36 | * @param $widget |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function registerWidget($widget) |
||
46 | |||
47 | /** |
||
48 | * @param Factory $factory |
||
49 | */ |
||
50 | public function placeWidgets(Factory $factory) |
||
87 | |||
88 | /** |
||
89 | * @param mixed $widget |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function makeWidget($widget) |
||
96 | |||
97 | /** |
||
98 | * @param $widget |
||
99 | * |
||
100 | * @return \Closure |
||
101 | */ |
||
102 | public function createClassWidget($widget) |
||
106 | } |
||
107 |
It seems like you are assigning to a variable which was imported through a
use
statement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope