OptimizedPhpArrayDumper::getParameters

protected OptimizedPhpArrayDumper::getParameters()

Gets parameters of the container as a PHP array.

Return value

array The escaped and prepared parameters of the container.

File

core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 99

Class

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

Namespace

Drupal\Component\DependencyInjection\Dumper

Code

protected function getParameters() {
  if (!$this->container->getParameterBag()->all()) {
    return array();
  }

  $parameters = $this->container->getParameterBag()->all();
  $is_frozen = $this->container->isFrozen();
  return $this->prepareParameters($parameters, $is_frozen);
}
doc_Drupal
2016-10-29 09:32:37
Comments
Leave a Comment

Please login to continue.