You are here

private function GraphvizDumper::getAliases in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php \Symfony\Component\DependencyInjection\Dumper\GraphvizDumper::getAliases()

Compiles an array of aliases for a specified service id.

Parameters

string $id A service id:

Return value

array An array of aliases

1 call to GraphvizDumper::getAliases()
GraphvizDumper::addNodes in vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php
Returns all nodes.

File

vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php, line 295

Class

GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function getAliases($id) {
  $aliases = array();
  foreach ($this->container
    ->getAliases() as $alias => $origin) {
    if ($id == $origin) {
      $aliases[] = $alias;
    }
  }
  return $aliases;
}