/** * Return a registered response plugin * * Pass the plugin name as the first argument and the plugin object will be returned. * You can then access the methods of the plugin directly. * * @param string $sName The plugin name * * @return \Xajax\Plugin\Response */ public function plugin($sName) { $xPlugin = $this->xPluginManager->getResponsePlugin($sName); if (!$xPlugin) { return null; } $xPlugin->setResponse($this); return $xPlugin; }