class Alias

@api

Hierarchy

  • class \Symfony\Component\DependencyInjection\Alias

Expanded class hierarchy of Alias

6 files declare their use of Alias
ContainerBuilderTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
IntegrationTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php
ResolveReferencesToAliasesPass.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php
ServiceReferenceGraphNode.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php
XmlFileLoader.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

... See full list

1 string reference to 'Alias'
path_admin_overview in drupal/core/modules/path/path.admin.inc
Returns a listing of all defined URL aliases.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Alias.php, line 17

Namespace

Symfony\Component\DependencyInjection
View source
class Alias {
  private $id;
  private $public;

  /**
   * Constructor.
   *
   * @param string  $id     Alias identifier
   * @param Boolean $public If this alias is public
   *
   * @api
   */
  public function __construct($id, $public = true) {
    $this->id = strtolower($id);
    $this->public = $public;
  }

  /**
   * Checks if this DI Alias should be public or not.
   *
   * @return Boolean
   *
   * @api
   */
  public function isPublic() {
    return $this->public;
  }

  /**
   * Sets if this Alias is public.
   *
   * @param Boolean $boolean If this Alias should be public
   *
   * @api
   */
  public function setPublic($boolean) {
    $this->public = (bool) $boolean;
  }

  /**
   * Returns the Id of this alias.
   *
   * @return string The alias id
   *
   * @api
   */
  public function __toString() {
    return $this->id;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Alias::$id private property
Alias::$public private property
Alias::isPublic public function Checks if this DI Alias should be public or not.
Alias::setPublic public function Sets if this Alias is public.
Alias::__construct public function Constructor.
Alias::__toString public function Returns the Id of this alias.