1 | <?php |
||
23 | class GlobalVariables |
||
24 | { |
||
25 | /** |
||
26 | * @var ContainerInterface |
||
27 | * |
||
28 | * @deprecated Since version 3.5, will be removed in 4.0. |
||
29 | * NEXT_MAJOR : remove this property |
||
30 | */ |
||
31 | protected $container; |
||
32 | |||
33 | /** |
||
34 | * @var Pool |
||
35 | */ |
||
36 | protected $adminPool; |
||
37 | |||
38 | /** |
||
39 | * @var string|null |
||
40 | */ |
||
41 | private $mosaicBackground; |
||
42 | |||
43 | /** |
||
44 | * @param ContainerInterface|Pool $adminPool |
||
45 | */ |
||
46 | public function __construct($adminPool, ?string $mosaicBackground = null) |
||
69 | |||
70 | /** |
||
71 | * @return Pool |
||
72 | */ |
||
73 | public function getAdminPool() |
||
77 | |||
78 | /** |
||
79 | * @param string $code |
||
80 | * @param string $action |
||
81 | * @param array $parameters |
||
82 | * @param int $absolute |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | public function url($code, $action, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH) |
||
92 | |||
93 | /** |
||
94 | * @param string $code |
||
95 | * @param string $action |
||
96 | * @param mixed $object |
||
97 | * @param array $parameters |
||
98 | * @param int $absolute |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function objectUrl($code, $action, $object, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH) |
||
108 | |||
109 | public function getMosaicBackground(): ?string |
||
113 | |||
114 | private function getCodeAction($code, $action): array |
||
125 | } |
||
126 |
If you suppress an error, we recommend checking for the error condition explicitly: