DependencyInjection/Source/EasyJWTLoaderSource.php
private function createJWTLoaderServiceConfiguration(array $config, $id, array $section)
    {
        $service = [
            'is_public' => $section['is_public'],
            'verifier'  => sprintf('jose.verifier.%s', $id),
            'checker'   => sprintf('jose.checker.%s', $id),
        ];
        if (true === $this->isEncryptionSupportEnabled($section)) {
            $service['decrypter'] = sprintf('jose.decrypter.%s', $id);
        }
        $config['jwt_loaders'] = array_merge(
            array_key_exists('jwt_loaders', $config) ? $config['jwt_loaders'] : [],
            [$id => $service]
        );

        return $config;
    }
private function createJWTLoaderServiceConfiguration(array $config, $id, array $section)
    {
        $service = [
            'is_public' => $section['is_public'],
            'verifier'  => sprintf('jose.verifier.%s', $id),
            'checker'   => sprintf('jose.checker.%s', $id),
        ];
        if (true === $this->isEncryptionSupportEnabled($section)) {
            $service['decrypter'] = sprintf('jose.decrypter.%s', $id);
        }
        $config['jwt_loaders'] = array_merge(
            array_key_exists('jwt_loaders', $config) ? $config['jwt_loaders'] : [],
            [$id => $service]
        );

        return $config;
    }
@param array  $config
@param string $id
@param array  $section

@return array