Get kernel parameters

@return array
551681
public function getKernelParameters()
    {
        return [
            'kernel.debug'       => $this->debug,
            'kernel.environment' => $this->environment,
            'kernel.cache_dir'   => $this->getCacheDir(),
            'kernel.charset'     => $this->getCharset(),
            'kernel.logs_dir'    => $this->getLogDir(),
            'kernel.name'        => $this->getName(),
            'kernel.root_dir'    => $this->getRootDir(),
            'kernel.version'     => self::VERSION
        ];
    }
30883
public function getParamsInfo(): array
    {
        $paramsInfo = [];

        foreach ($this->getParamNames() as $paramName) {
            $paramsInfo[$paramName] = $this->getParamInfo($paramName);
        }

        return $paramsInfo;
    }
71399
public function getSupportedParams()
    {
        return [
            self::PARAM_INCLUSIONS  => true,
            self::PARAM_FIELDSETS   => true,
            self::PARAM_SORTING     => true,
            self::PARAM_PAGINATION  => true,
            self::PARAM_FILTERING   => true,
        ];
    }
687776
public function getParams(): array
    {
        $params = [];

        if ($this->chatId !== null) {
            $params['chat_id'] = $this->chatId;
        }

        if ($this->messageId) {
            $params['message_id'] = $this->messageId;
        }

        if ($this->inlineMessageId !== null) {
            $params['inline_message_id'] = $this->inlineMessageId;
        }

        return $params;
    }
923644
protected function kernel()
    {
        $s = $this->grabkey('kern.version');
        $a = preg_split('/:/', $s);
        if (isset($a[2])) {
            $this->sys->setKernel($a[0].$a[1].':'.$a[2]);
        } else {
            $this->sys->setKernel($s);
        }
    }
1095302
public function endpoint(Kernel $kernel)
    {
        $code = $kernel->call(
            $this->request->get('method'),
            $this->request->get('params', [])
        );

        if ($code !== 0) {
            return $this->responseFactory->json([
                'jsonrpc' => $this->request->get('jsonrpc'),
                'id' => null,
                'error' => [
                    'code' => -32600,
                    'message' => 'Invalid Request',
                    'data' => $kernel->output(),
                ],
            ]);
        }

        return $this->responseFactory->json([
            'jsonrpc' => $this->request->get('jsonrpc'),
            'id' => $this->request->get('id'),
            'result' => $kernel->output(),
        ]);
    }
634710
public function getCookieParams()
    {
        if ($this->cookieParams === null) {
            if ($this->cookieParamsProvider !== null) {
                $this->cookieParams = ($this->cookieParamsProvider)();
            } else {
                $this->cookieParams = [];
            }
        }
        return $this->cookieParams;
    }
41137
public function getParams()
    {
        if ($this->cachedParams) {
            return $this->cachedParams;
        }

        $CMDS = [];
        $KEYS = [];
        $ARGV = [];
        $KEYNUM = 0;
        $ARGNUM = 0;

        foreach ($this->stack as $part) {
            list($cmd, $keys, $argv) = $part;

            if (!empty($keys)) {
                $cmd = preg_replace_callback('~KEYS\[(\d+)\]~', function ($m) use (&$KEYS, &$KEYNUM, $keys) {
                    $key = $keys[$m[1] - 1];
                    if (!isset($KEYS[$key])) {
                        $KEYS[$key] = ++$KEYNUM;
                    }
                    return 'KEYS[' . $KEYS[$key] . ']';
                }, $cmd);
            }

            if (!empty($argv)) {
                $cmd = preg_replace_callback('~ARGV\[(\d+)\]~', function ($m) use (&$ARGV, &$ARGNUM, $argv) {
                    $arg = $argv[$m[1] - 1];
                    if (!isset($ARGV[$arg])) {
                        $ARGV[$arg] = ++$ARGNUM;
                    }
                    return 'ARGV[' . $ARGV[$arg] . ']';
                }, $cmd);
            }

            $CMDS[] = $cmd;
        }

        return $this->cachedParams = array_merge(
            [implode(';', $CMDS), count($KEYS)],
            array_keys($KEYS),
            array_keys($ARGV)
        );
    }
918520
public function getWhereParameters()
    {
        $params = [];
        foreach ($this->filters as $filter) {
            $params = array_merge($params, $filter->getParameters());
        }

        return $params;
    }
32121
public function options() : array
    {
        return [
            svm::OPT_KERNEL_TYPE => svm::KERNEL_SIGMOID,
            svm::OPT_GAMMA => $this->gamma,
            svm::OPT_COEF_ZERO => $this->coef0,
        ];
    }
618470
public function getParametersArray()
    {
        $result = parent::getParametersArray();

        if (!empty($this->getRole())) {
            $result['f_role'] = $this->getRole();
        }

        return $result;
    }
1225379
protected function getDefaultParameters()
    {
        $defaultParameters = array('--no-debug' => true);

        if ($this->input->hasOption('env')) {
            $defaultParameters['--env'] = $this->input->hasOption('env') ? $this->input->getOption('env') : 'dev';
        }

        if ($this->input->hasOption('no-interaction') && true === $this->input->getOption('no-interaction')) {
            $defaultParameters['--no-interaction'] = true;
        }

        if ($this->input->hasOption('verbose') && true === $this->input->getOption('verbose')) {
            $defaultParameters['--verbose'] = true;
        }

        return $defaultParameters;
    }
315130
public function getParams(): array
    {
        $params = [
            'chat_id' => $this->chatId
        ];

        if ($this->parseMode) {
            $params['parse_mode'] = $this->parseMode;
        }

        if ($this->disableWebPagePreview) {
            $params['disable_web_page_preview'] = (int)$this->disableWebPagePreview;
        }

        if ($this->disableNotification !== null) {
            $params['disable_notification'] = (int)$this->disableNotification;
        }

        if ($this->replyToMessageId) {
            $params['reply_to_message_id'] = $this->replyToMessageId;
        }

        return $params;
    }
311882
protected function getParameters()
    {
        $strings = array();

        foreach ($this->getParameterInfo() as $name => $parameter) {
            if ($parameter['type']) {
                $strings[] = ':type $' . $name . ': ' . $parameter['type'];
            }

            $string = ':param $' . $name . ':';

            if (isset($parameter['comment']) && $parameter['comment']) {
                $string .= ' ' . $parameter['comment'];
            }

             $strings[] = $string;
        }

        return $strings;
    }
411482
public function getFunctions()
    {
        return [
            new Twig_SimpleFunction('url', function ($name, array $parameters = [], $format = null) {
                return $this->getContainer()->singleton('kernel.dispatch')->dispatch('handle.url', [$name, $parameters, $format]);
            }),
            new Twig_SimpleFunction('asset', function ($name, $version = null) {
                return $this->getContainer()->singleton('kernel.dispatch')->dispatch('handle.asset', [$name, $version]);
            }),
        ];
    }
1037860
public function getParams()
    {
        $filters = array_filter($this->filters, function ($value) {
            return $value !== null;
        });

        $filters = array_map(function ($value) {
            return is_array($value) ? ['value' => $value, 'operator' => 'IN'] : $value;
        }, $filters);

        return count($filters) ? ['filter' => $filters] : [];
    }
776912
public function getFacetParameters()
    {
        $facetArray = array();
        foreach ( $_GET as $name => $value )
        {
            if ( strpos( $name, 'facet_' ) === 0 )
            {
                $facetArray[substr( $name, 6 )] = $value;
            }
        }

        return array( 'result' => array( $facetArray ) );
    }