for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Mediapart LaPresseLibre Bundle.
*
* CC BY-NC-SA <https://github.com/mediapart/lapresselibre-bundle>
* For the full license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mediapart\Bundle\LaPresseLibreBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
* This is the class that validates and merges configuration from your app/config files
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
class Configuration implements ConfigurationInterface
{
* {@inheritDoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('mediapart_la_presse_libre');
$rootNode
->children()
->scalarNode('public_key')
->defaultValue('%lapresselibre_publickey%')
->cannotBeEmpty()
->end()
->scalarNode('secret_key')
->defaultValue('%lapresselibre_secretkey%')
->scalarNode('aes_password')
->defaultValue('%lapresselibre_aespassword%')
->scalarNode('aes_iv')
->defaultValue('%lapresselibre_aesiv%')
->scalarNode('aes_options')
->defaultValue(OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING)
->arrayNode('account')
->scalarNode('repository')->end()
->scalarNode('provider')->end()
;
return $treeBuilder;
}