/** * onAfterRender * * @return void */ public function onAfterRender() { $app = JFactory::getApplication(); // Get the response body .... an additional check for J! 3.0.0 if (EXTLY_J3 && method_exists($app, 'getBody')) { $body = $app->getBody(); } else { $body = JResponse::getBody(); } if (class_exists('Extly')) { Extly::insertDependencyManager($body); } if (EXTLY_J3 && method_exists($app, 'setBody')) { $app->setBody($body); } else { JResponse::setBody($body); } $this->onContentPolling(); }