Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class CurrentSiteExtension extends AbstractExtension |
||
17 | { |
||
18 | private $requestStack; |
||
19 | |||
20 | public function __construct(RequestStack $requestStack) |
||
21 | { |
||
22 | $this->requestStack = $requestStack; |
||
23 | } |
||
24 | |||
25 | public function getFunctions(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | public function getCurrentSite(): ?SiteInterface |
||
43 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.