Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/dependency-injection/Loader/Configurator/InstanceofConfigurator.php line 35

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\DependencyInjection\Loader\Configurator;
  11. use Symfony\Component\DependencyInjection\Definition;
  12. /**
  13.  * @author Nicolas Grekas <p@tchwork.com>
  14.  */
  15. class InstanceofConfigurator extends AbstractServiceConfigurator
  16. {
  17.     use Traits\AutowireTrait;
  18.     use Traits\BindTrait;
  19.     use Traits\CallTrait;
  20.     use Traits\ConfiguratorTrait;
  21.     use Traits\LazyTrait;
  22.     use Traits\PropertyTrait;
  23.     use Traits\PublicTrait;
  24.     use Traits\ShareTrait;
  25.     use Traits\TagTrait;
  26.     public const FACTORY 'instanceof';
  27.     private $path;
  28.     public function __construct(ServicesConfigurator $parentDefinition $definitionstring $idstring $path null)
  29.     {
  30.         parent::__construct($parent$definition$id, []);
  31.         $this->path $path;
  32.     }
  33.     /**
  34.      * Defines an instanceof-conditional to be applied to following service definitions.
  35.      */
  36.     final public function instanceof(string $fqcn): self
  37.     {
  38.         return $this->parent->instanceof($fqcn);
  39.     }
  40. }