You are here

private function PhpDumper::addServiceReturn in Zircon Profile 8

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

Adds the service return statement.

Parameters

string $id Service id:

Definition $definition:

Return value

string

1 call to PhpDumper::addServiceReturn()
PhpDumper::addService in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
Adds a service.

File

vendor/symfony/dependency-injection/Dumper/PhpDumper.php, line 347

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addServiceReturn($id, $definition) {
  if ($this
    ->isSimpleInstance($id, $definition)) {
    return "    }\n";
  }
  return "\n        return \$instance;\n    }\n";
}