You are here

public function PhpArrayDumper::dump in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper::dump()

Dumps the service container.

@api

Parameters

array $options An array of options:

Return value

string The representation of the service container

Overrides DumperInterface::dump

File

lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php, line 25
Contains \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper

Class

PhpArrayDumper
PhpArrayDumper dumps a service container as a serialized PHP array.

Namespace

Drupal\Core\DependencyInjection\Dumper

Code

public function dump(array $options = array()) {
  return serialize($this
    ->getArray());
}