Returns parameters registry instance

@param bool $reset Reset flag.
@return \PlumSearch\FormParameter\ParameterRegistry
17872
public function parameters($reset = false)
    {
        if ($reset || is_null($this->_searchParameters)) {
            $this->_searchParameters = new ParameterRegistry($this->_controller, []);
            $parameters = (array)$this->config('parameters');
            foreach ($parameters as $parameter) {
                if (!empty($parameter['name'])) {
                    $this->addParam($parameter['name'], $parameter);
                }
            }
        }

        return $this->_searchParameters;
    }
849147
public function getConfigs($default = null, $scope = null)
    {
        if (!is_null($scope)) {
            return isset($this->registry[$scope]) ? $this->registry[$scope] : $default;
        }
        return $this->registry;
    }
1061348
public static function objects(Registry $registry = null)
    {
        $manager = static::getManagerClass();
        $modelInstance = static::createObject(['registry' => $registry]);

        return new $manager($modelInstance);
    }
98815
public function make($resetClaims = false)
    {
        $payload = $this->withClaims($this->buildClaimsCollection());

        if ($resetClaims) {
            $this->emptyClaims();
        }

        return $payload;
    }
1118830
public function filters($reset = false)
    {
        if ($reset || is_null($this->_searchFilters)) {
            $this->_searchFilters = new FilterRegistry($this->_table);
        }

        return $this->_searchFilters;
    }
562779
public function all($clear=false)
    {
        $parameters = $this->parameters;

        if($clear === true) {
            $this->parameters = array();
        }

        return $parameters;
    }
1173717
public function getResetLink()
    {
        return app('html')->link(handles('antares::api/user/reset', ['provider' => $this->name]), trans('Reset public key'), [
                    'class'            => "triggerable confirm",
                    'data-title'       => trans("Are you sure?"),
                    'data-description' => trans('Do you really want to reset api public key?'),
                ])->get();
    }
186735
protected function getEnvironment($reset = false)
    {
        if ($reset === true || null === $this->twig) {
            $this->twig = new \Twig_Environment(
                $this->getLoader(), $this->getConfig());
            $this->twig->removeExtension('escaper');
        }

        return $this->twig;
    }
271162
public function getRecursive($key, $default = null)
    {
        $params = $this->parameters;
        if(!strpos($key, '.')) {
            return $this->get($key, $default);
        }

        $array = explode('.', $key);
        foreach ($array as $entry) {
            if(array_key_exists($entry, $params)) {
                $params = $params[$entry];
            }else {
                return $default;
            }
        }

        return isset($params) ? $params : $default;
    }
269787
public function setHeaders(array $headers, $reset = false)
    {
        if ($reset === true) {
            $this->api_headers = $headers;
        } else {
            $this->api_headers += $headers;
        }

        return $this;
    }
930187
public static function get_current_tour($reset = false) {
        global $PAGE;

        static $tour = false;

        if ($tour === false || $reset) {
            $tour = self::get_matching_tours($PAGE->url);
        }

        return $tour;
    }
659324
public function setParams(array $data = [], $reset = false)
    {
        if ($reset) {
            $this->_data = $data;
        }
        foreach ($data as $key => $value) {
            $this->__set($key, $value);
        }
        return $this;
    }
1009794
public function getVersion($reset = false)
    {
        if ($reset || !isset($this->version)) {
            $this->version = $this->shellHelper->execute(
                [$this->getDrushExecutable(), 'version', '--format=string']
            );
        }


        return $this->version;
    }
1149419
public function getPostLoginRedirectResponse($resetSessionPostLoginUrl = false)
    {
        $result = $this->responseFactory->redirect(
            $this->getPostLoginUrl($resetSessionPostLoginUrl),
            Response::HTTP_FOUND
        );
        // Disable caching for response
        $result = $result->setMaxAge(0)->setSharedMaxAge(0)->setPrivate();
        $result->headers->addCacheControlDirective('must-revalidate', true);
        $result->headers->addCacheControlDirective('no-store', true);

        return $result;
    }
342859
public function refresh($forceForever = false, $resetClaims = false)
    {
        if ($cache = $this->getCachedToken()) {
            return $cache;
        }

        // refresh token
        $token = $this->jwt->parser()->parseToken();
        $key = md5($token);
        $refreshToken = JWTAuth::refresh($token, $forceForever, $resetClaims);

        // cache newly refreshed token
        $this->setCachedToken($key, $refreshToken);

        return $this->cachedToken;
    }
861732
public function getRegistryAlias()
    {
        if ($this->_registryAlias === null) {
            $this->_registryAlias = $this->getAlias();
        }

        return $this->_registryAlias;
    }
661137
public function getRoles($reset = false, $authenticated = false, $anonymous = false)
    {
        if ($reset || !$this->roles) {
            $roles = $this->entityTypeManager->getStorage('user_role')->loadMultiple();
            if (!$authenticated) {
                unset($roles['authenticated']);
            }
            if (!$anonymous) {
                unset($roles['anonymous']);
            }
            foreach ($roles as $role) {
                $this->roles[$role->id()] = $role->label();
            }
        }

        return $this->roles;
    }