DependencyInjection/Source/JWTLoaderSource.php
public function createService($name, array $config, ContainerBuilder $container)
    {
        $service_id = sprintf('jose.jwt_loader.%s', $name);
        $definition = new Definition('Jose\JWTLoader');
        $definition->setFactory([
            new Reference('jose.factory.service'),
            'createJWTLoader',
        ]);
        $definition->setArguments([
            new Reference($config['checker']),
            new Reference($config['verifier']),
            null === $config['decrypter'] ? null : new Reference($config['decrypter']),
        ]);
        $definition->setPublic($config['is_public']);

        $container->setDefinition($service_id, $definition);
    }
public function createService($name, array $config, ContainerBuilder $container)
    {
        $service_id = sprintf('jose.jwt_loader.%s', $name);
        $definition = new Definition('Jose\JWTLoader');
        $definition->setFactory([
            new Reference('jose.factory.service'),
            'createJWTLoader',
        ]);
        $definition->setArguments([
            new Reference($config['checker']),
            new Reference($config['verifier']),
            null === $config['decrypter'] ? null : new Reference($config['decrypter']),
        ]);
        $definition->setPublic($config['is_public']);

        $container->setDefinition($service_id, $definition);
    }
{@inheritdoc}