捆绑x具有配置选项。
# bundle_x.yml
bundle_x:
option_1: 'my super option'
创建者;
// Configuration.php
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sonata_admin', 'array');
$rootNode
->children()
->scalarNode('title')->end()
}
}
如何使其他捆绑销售商品成为可能?
# bundle_x.yml
bundle_x:
option_1: 'my super option'
option_2: 'option added from other bundle'