Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServicesConfigurator.php

function ServicesConfigurator::instanceof

Defines an instanceof-conditional to be applied to following service definitions.

File

vendor/symfony/dependency-injection/Loader/Configurator/ServicesConfigurator.php, line 59

Class

ServicesConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

public final function instanceof(string $fqcn) : InstanceofConfigurator {
    $this->instanceof[$fqcn] = $definition = new ChildDefinition('');
    return new InstanceofConfigurator($this, $definition, $fqcn, $this->path);
}
RSS feed
Powered by Drupal