You are here

private function GraphvizDumper::addOptions in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php \Symfony\Component\DependencyInjection\Dumper\GraphvizDumper::addOptions()

Adds options.

Parameters

array $options An array of options:

Return value

string A space separated list of options

1 call to GraphvizDumper::addOptions()
GraphvizDumper::startDot in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
Returns the start dot.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php, line 262

Class

GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addOptions($options) {
  $code = array();
  foreach ($options as $k => $v) {
    $code[] = sprintf('%s="%s"', $k, $v);
  }
  return implode(' ', $code);
}