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-2017 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\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Class AbstractSource.
abstract class AbstractSignatureSource implements Source
{
* {@inheritdoc}
public function getNodeDefinition(ArrayNodeDefinition $node)
$node
->children()
->arrayNode($this->name())
->useAttributeAsKey('name')
->prototype('array')
->booleanNode('is_public')
->info('If true, the service will be public, else private.')
->defaultTrue()
->end()
->arrayNode('signature_algorithms')
->isRequired()
->prototype('scalar')->end()
->end();
}
public function prepend(ContainerBuilder $container, array $config): array
return [];