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

Breadcrumb

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

function When::__construct

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

Parameters

string $env The environment under which the class will be registered as a service (i.e. "dev", "test", "prod"):

File

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

Class

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

Namespace

Symfony\Component\DependencyInjection\Attribute

Code

public function __construct(string $env) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal