namespace Symfony\Component\HttpKernel\Tests\Fixtures\AcmeFooBundle;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
class AcmeFooBundle extends AbstractBundle
{ public function configure(DefinitionConfigurator
$definition): void
{ $definition->
rootNode() ->
children() ->
scalarNode('foo'
)->
defaultValue('bar'
)->
end() ->
end() ;
$definition->
import('Resources/config/definition.php'
);
} public function prependExtension(ContainerConfigurator
$container, ContainerBuilder
$builder): void
{ $container->
extension('loaded',
['bar' => 'baz'
]);
}