1 | <?php |
||
23 | class EventResolverFactory extends UserAwareComponent |
||
24 | { |
||
25 | /** |
||
26 | * @param Event $event |
||
27 | * @param string $eventName |
||
28 | * @return null|BaseAuditLog |
||
29 | * @throws UnrecognizedEventInfoException |
||
30 | * @throws \Exception |
||
31 | */ |
||
32 | public function getEventLog(Event $event, $eventName) |
||
47 | |||
48 | /** |
||
49 | * @param $eventInfo |
||
50 | * |
||
51 | * @return null|BaseAuditLog |
||
52 | * @throws UnrecognizedEventInfoException |
||
53 | */ |
||
54 | protected function getEventLogObject($eventInfo) |
||
66 | |||
67 | /** |
||
68 | * @param string $eventName |
||
69 | * |
||
70 | * @throws \Exception |
||
71 | * @return EventResolverInterface |
||
72 | */ |
||
73 | protected function getResolver($eventName) |
||
88 | |||
89 | /** |
||
90 | * @param string $eventName |
||
91 | * @return bool |
||
92 | */ |
||
93 | protected function isEntityEvent($eventName) |
||
97 | |||
98 | /** |
||
99 | * @param Event $event |
||
100 | * @param string $eventName |
||
101 | * @return null |
||
102 | * @throws InvalidServiceException |
||
103 | */ |
||
104 | protected function getEventLogInfo(Event $event, $eventName) |
||
116 | |||
117 | /** |
||
118 | * @param BaseAuditLog $entity |
||
119 | * @throws \Exception |
||
120 | */ |
||
121 | protected function setUser(BaseAuditLog $entity) |
||
134 | |||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | protected function getClientIp() |
||
149 | |||
150 | /** |
||
151 | * @return \Symfony\Component\DependencyInjection\ContainerInterface |
||
152 | */ |
||
153 | protected function getContainer() |
||
157 | |||
158 | /** |
||
159 | * @return null |
||
160 | * @throws InvalidServiceException |
||
161 | */ |
||
162 | protected function handleInvalidResolverConfiguration() |
||
172 | |||
173 | /** |
||
174 | * @param $serviceName |
||
175 | * @return null|EventResolverInterface |
||
176 | * @throws InvalidServiceException |
||
177 | */ |
||
178 | protected function getCustomResolver($serviceName) |
||
188 | |||
189 | /** |
||
190 | * @param \Exception $e |
||
191 | * @throws \Exception |
||
192 | * @return null |
||
193 | */ |
||
194 | protected function handleException(\Exception $e) |
||
202 | |||
203 | /** |
||
204 | * @param $eventInfo |
||
205 | * @return null|BaseAuditLog |
||
206 | * @throws \Exception |
||
207 | */ |
||
208 | protected function createEventObjectFromArray($eventInfo) |
||
223 | |||
224 | /** |
||
225 | * @param $userProperty |
||
226 | * @param $user |
||
227 | * @return mixed |
||
228 | */ |
||
229 | protected function getSettablePropertyValue($userProperty, $user) |
||
242 | |||
243 | /** |
||
244 | * @param BaseAuditLog $entity |
||
245 | * @param $userProperty |
||
246 | */ |
||
247 | protected function setImpersonatingUser(BaseAuditLog $entity, $userProperty) |
||
253 | } |
||
254 |