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

Breadcrumb

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

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.

@author Alan Poulain <contact@alanpoulain.eu>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Attribute\AsAlias

Expanded class hierarchy of AsAlias

1 file declares its use of AsAlias
FileLoader.php in vendor/symfony/dependency-injection/Loader/FileLoader.php

File

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

Namespace

Symfony\Component\DependencyInjection\Attribute
View source
final class AsAlias {
    
    /**
     * @param string|null $id     The id of the alias
     * @param bool        $public Whether to declare the alias public
     */
    public function __construct(?string $id = null, bool $public = false) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
AsAlias::__construct public function

API Navigation

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