for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PsyshBundle package.
*
* (c) Théo FIDRY <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fidry\PsyshBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @private
final class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('psysh');
$rootNode
->children()
->arrayNode('variables')
->info('Define additional variables to be exposed in Psysh')
->useAttributeAsKey('variable_name')
->example([
'debug' => '%kernel.debug%',
'my_service' => '@my.service',
'os' => ['linux', 'macos', 'losedows'],
])
->prototype('variable')->end()
->end()
->end();
return $treeBuilder;
}