| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function init(Configuration $_configuration, Dispatcher $_eventDispatcher) |
||
| 20 | { |
||
| 21 | if ($_configuration->hasSection('responseRetriever')) { |
||
| 22 | $this->retriever = Init::initialize($_configuration->getSection('responseRetriever')); |
||
| 23 | |||
| 24 | $_eventDispatcher->notify(new Event('ResponseRetriever.setSessionContainer.before', array('sessionContainer' => $_configuration->getSessionContainer()))); |
||
| 25 | |||
| 26 | $this->retriever->setSessionContainer($_configuration->getSessionContainer()); |
||
| 27 | } else { |
||
| 28 | throw new \RuntimeException("No response retriever set. Please check the config file if a section 'responseRetriever' exists."); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 45 |