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

Breadcrumb

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

function AsAlias::__construct

Parameters

string|null $id The id of the alias:

bool $public Whether to declare the alias public:

File

vendor/symfony/dependency-injection/Attribute/AsAlias.php, line 26

Class

AsAlias
An attribute to tell under which alias a service should be registered or to use the implemented interface if no parameter is given.

Namespace

Symfony\Component\DependencyInjection\Attribute

Code

public function __construct(?string $id = null, bool $public = false) {
}

API Navigation

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