src/PHPDish/Bundle/PermissionBundle/DependencyInjection/Configuration.php
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('phpdish_permission');

        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('privileger')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PrivilegerInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('role')
                            ->children()
                                ->scalarNode('interface')->defaultValue(RoleInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Role::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('permission')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PermissionInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Permission::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('phpdish_permission');

        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('privileger')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PrivilegerInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('role')
                            ->children()
                                ->scalarNode('interface')->defaultValue(RoleInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Role::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('permission')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PermissionInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Permission::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
{@inheritdoc}