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;
15 * @author Nicolas Grekas <p@tchwork.com>
17 * @method InstanceofConfigurator instanceof(string $fqcn)
19 class InstanceofConfigurator extends AbstractServiceConfigurator
21 const FACTORY = 'instanceof';
23 use Traits\AutowireTrait;
25 use Traits\ConfiguratorTrait;
27 use Traits\PropertyTrait;
28 use Traits\PublicTrait;
29 use Traits\ShareTrait;
33 * Defines an instanceof-conditional to be applied to following service definitions.
39 final protected function setInstanceof($fqcn)
41 return $this->parent->instanceof($fqcn);