| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function beforeDispatch(): bool |
||
| 27 | { |
||
| 28 | $queue = $this->getDI()->getShared('beanstalkConnectionCache'); |
||
| 29 | |||
| 30 | $arrayOfClearedModels = $queue->getMessagesFromTube(); |
||
| 31 | foreach ($arrayOfClearedModels as $clearedModel) { |
||
| 32 | if (class_exists($clearedModel)) { |
||
| 33 | call_user_func([$clearedModel, 'clearCache'], $clearedModel); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return true; |
||
| 38 | } |
||
| 40 |