/** * Initializes provided context. * * @param Context $context */ public function initializeContext(Context $context) { if (!$context instanceof MageAwareContext) { return; } $context->setMageApp($this->_mage_app); $context->setMageParameters($this->_parameters); $context->setPageManager(new PageManager($context, $this->_parameters)); $context->setFixtureManager(new FixtureFactoryManager($this->_parameters['fixture_factories'])); $context->setSessionManager(new SessionManager($this->_mage_app)); }