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

Breadcrumb

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

class When

Same name in this branch
  1. 11.1.x vendor/symfony/validator/Constraints/When.php \Symfony\Component\Validator\Constraints\When

An attribute to tell under which environment this class should be registered as a service.

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Attribute\When

Expanded class hierarchy of When

2 files declare their use of When
FileLoader.php in vendor/symfony/dependency-injection/Loader/FileLoader.php
PhpFileLoader.php in vendor/symfony/dependency-injection/Loader/PhpFileLoader.php
1 string reference to 'When'
XmlFileLoader::parseNode in vendor/symfony/routing/Loader/XmlFileLoader.php
Parses a node from a loaded XML file.

File

vendor/symfony/dependency-injection/Attribute/When.php, line 19

Namespace

Symfony\Component\DependencyInjection\Attribute
View source
class When {
    
    /**
     * @param string $env The environment under which the class will be registered as a service (i.e. "dev", "test", "prod")
     */
    public function __construct(string $env) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
When::__construct public function
RSS feed
Powered by Drupal