for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace OAuth2Framework\Bundle\Component\Core;
use OAuth2Framework\Bundle\Component\Component;
use OAuth2Framework\Component\Core\Response\Factory\ResponseFactory;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
class OAuth2ResponseSource implements Component
{
/**
* {@inheritdoc}
public function name(): string
return 'oauth2_response';
}
public function load(array $configs, ContainerBuilder $container)
$container->registerForAutoconfiguration(ResponseFactory::class)->addTag('oauth2_server_response_factory');
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config/core'));
$loader->load('oauth2_response.php');
public function getNodeDefinition(NodeDefinition $node)
//Nothing to do
public function build(ContainerBuilder $container)
$container->addCompilerPass(new ResponseFactoryCompilerPass());
public function prepend(ContainerBuilder $container, array $config): array
return [];