1 | <?php |
||
28 | class TranslatableResourceSubscriber implements EventSubscriber |
||
29 | { |
||
30 | /** |
||
31 | * @var ContainerInterface |
||
32 | */ |
||
33 | private $container; |
||
34 | |||
35 | /** |
||
36 | 5 | * @param ContainerInterface $container |
|
37 | */ |
||
38 | 5 | public function __construct(ContainerInterface $container) |
|
42 | |||
43 | /** |
||
44 | 2 | * @param LifecycleEventArgs $event |
|
45 | */ |
||
46 | 2 | public function postLoad(LifecycleEventArgs $event) |
|
62 | |||
63 | 1 | /** |
|
64 | * {@inheritdoc} |
||
65 | 1 | */ |
|
66 | 1 | public function getSubscribedEvents() |
|
70 | |||
71 | 1 | /** |
|
72 | * @param string $class |
||
73 | 1 | * |
|
74 | * @return ResourceInterface|null |
||
75 | */ |
||
76 | private function getResource($class) |
||
84 | |||
85 | /** |
||
86 | * @param string $resource |
||
87 | 1 | * |
|
88 | * @return FactoryInterface |
||
89 | 1 | */ |
|
90 | private function getTranslationFactory($resource) |
||
96 | |||
97 | /** |
||
98 | * @return LocaleContextInterface |
||
99 | */ |
||
100 | private function getLocaleContext() |
||
104 | |||
105 | /** |
||
106 | * @return RegistryInterface |
||
107 | */ |
||
108 | private function getResourceRegistry() |
||
112 | } |
||
113 |