/** * {@inheritdoc} */ public function __construct(Cms $cms) { parent::__construct($cms); $this->_app = \JFactory::getApplication(); }
/** * {@inheritdoc} * @SuppressWarnings(PHPMD.Superglobals) */ public function __construct(Cms $cms) { parent::__construct($cms); $this->_wp_query = Vars::get($GLOBALS['wp_query']); }