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-2019 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Jose\Bundle\JoseFramework\DependencyInjection\Source\Signature;
use Jose\Bundle\JoseFramework\DependencyInjection\Source\Source;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
abstract class AbstractSignatureSource implements Source
{
public function getNodeDefinition(NodeDefinition $node): void
$node
->children()
->arrayNode($this->name())
->useAttributeAsKey('name')
->arrayPrototype()
->booleanNode('is_public')
->info('If true, the service will be public, else private.')
->defaultTrue()
->end()
->arrayNode('signature_algorithms')
->info('A list of supported signature algorithms.')
->isRequired()
->requiresAtLeastOneElement()
->scalarPrototype()->end()
->arrayNode('tags')
->info('A list of tags to be associated to the service.')
->treatNullLike([])
->treatFalseLike([])
->variablePrototype()->end()
;
}
public function prepend(ContainerBuilder $container, array $config): array
return [];