Conditions | 5 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function onKernelTerminate() |
||
26 | { |
||
27 | if (!$this->container->has('dos.sms.sender')) { |
||
28 | return; |
||
29 | } |
||
30 | |||
31 | $senderInitialized = $this->container instanceof IntrospectableContainerInterface |
||
32 | ? $this->container->initialized('dos.sms.sender') |
||
33 | : true; |
||
34 | |||
35 | if (!$senderInitialized || !$this->container->get('dos.sms.sender') instanceof DelayedSenderInterface) { |
||
36 | return; |
||
37 | } |
||
38 | |||
39 | $this->container->get('dos.sms.sender')->flush(); |
||
40 | } |
||
41 | } |
||
42 |