4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
14 use Symfony\Component\DependencyInjection\ContainerInterface;
17 * @author Nicolas Grekas <p@tchwork.com>
19 class ReferenceConfigurator extends AbstractConfigurator
25 protected $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;
27 public function __construct($id)
35 final public function ignoreOnInvalid()
37 $this->invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE;
45 final public function nullOnInvalid()
47 $this->invalidBehavior = ContainerInterface::NULL_ON_INVALID_REFERENCE;
55 final public function ignoreOnUninitialized()
57 $this->invalidBehavior = ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE;
62 public function __toString()