PhpArrayDumper.php in Zircon Profile 8
File
core/lib/Drupal/Component/DependencyInjection/Dumper/PhpArrayDumper.php
View source
<?php
namespace Drupal\Component\DependencyInjection\Dumper;
use Symfony\Component\DependencyInjection\ContainerInterface;
class PhpArrayDumper extends OptimizedPhpArrayDumper {
public function getArray() {
$this->serialize = FALSE;
return parent::getArray();
}
protected function dumpCollection($collection, &$resolve = FALSE) {
$code = array();
foreach ($collection as $key => $value) {
if (is_array($value)) {
$code[$key] = $this
->dumpCollection($value);
}
else {
$code[$key] = $this
->dumpValue($value);
}
}
return $code;
}
protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
return '@?' . $id;
}
return '@' . $id;
}
protected function getParameterCall($name) {
return '%' . $name . '%';
}
protected function supportsMachineFormat() {
return FALSE;
}
}