Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\Config\Definition\Builder;

/**
* An interface that can be implemented by nodes which build other nodes.
*
* @author Roland Franssen <[email protected]>
*/
interface BuilderAwareInterface
{
public function setBuilder(NodeBuilder $builder);
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function node($name, $type)
*/
public function append(NodeDefinition $node)
{
if ($node instanceof ParentNodeDefinitionInterface) {
if ($node instanceof BuilderAwareInterface) {
$builder = clone $this;
$builder->setParent(null);
$node->setBuilder($builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
*
* @author Victor Berchet <[email protected]>
*/
interface ParentNodeDefinitionInterface
interface ParentNodeDefinitionInterface extends BuilderAwareInterface
{
public function children();

public function append(NodeDefinition $node);

public function setBuilder(NodeBuilder $builder);
}