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\Endpoint;
use Fluent\PhpConfigFileLoader;
use OAuth2Framework\Bundle\Component\Component;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class AuthorizationEndpointFormPostResponseModeSource implements Component
{
/**
* {@inheritdoc}
protected function continueLoading(string $path, ContainerBuilder $container, array $config)
foreach ($config as $k => $v) {
$container->setParameter($path.'.'.$k, $v);
}
$loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config/endpoint'));
$loader->load('form_post_response_mode.php');
public function name(): string
return 'form_post';
public function getNodeDefinition(NodeDefinition $node)
$node
->children()
->scalarNode('template')
->info('The template used to render the form.')
->defaultValue('@OAuth2FrameworkBundle/form_post/response.html.twig')
->end()
->end();