@@ 45-57 (lines=13) @@ | ||
42 | /** |
|
43 | * @param ContainerInterface|RequestStack $requestStack |
|
44 | */ |
|
45 | public function __construct(/* RequestStack */ $requestStack) |
|
46 | { |
|
47 | if ($requestStack instanceof ContainerInterface) { |
|
48 | @trigger_error(sprintf('Passing the container as the first argument of "%s" is deprecated in KunstmaanAdminBundle 5.4 and will be removed in KunstmaanAdminBundle 6.0. Inject the "request_stack" service instead.', __CLASS__), E_USER_DEPRECATED); |
|
49 | ||
50 | $this->container = $requestStack; |
|
51 | $this->requestStack = $this->container->get('request_stack'); |
|
52 | ||
53 | return; |
|
54 | } |
|
55 | ||
56 | $this->requestStack = $requestStack; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * Add menu adaptor |
@@ 36-48 (lines=13) @@ | ||
33 | /** |
|
34 | * @param ContainerInterface|TokenStorageInterface $tokenStorage |
|
35 | */ |
|
36 | public function __construct(/*TokenStorageInterface */ $tokenStorage) |
|
37 | { |
|
38 | if ($tokenStorage instanceof ContainerInterface) { |
|
39 | @trigger_error(sprintf('Passing the container as the first argument of "%s" is deprecated in KunstmaanAdminBundle 5.4 and will be removed in KunstmaanAdminBundle 6.0. Inject the "security.token_storage" service instead.', __CLASS__), E_USER_DEPRECATED); |
|
40 | ||
41 | $this->container = $tokenStorage; |
|
42 | $this->tokenStorage = $this->container->get('security.token_storage'); |
|
43 | ||
44 | return; |
|
45 | } |
|
46 | ||
47 | $this->tokenStorage = $tokenStorage; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @param array $record |