/** * This is here to allow role extension through plugins * @param string */ function _validateRole($role) { return in_array($role, \Pyrus\Installer\Role::getValidRoles($this->_pf->getPackageType())); }