Load a YAML file containing service definitions and kernel parameters.
string $filename The name of the file to load.
public function load($filename) {
$content = $this
->loadFile($filename);
$content += array(
'parameters' => array(),
'services' => array(),
);
// parameters
foreach ($content['parameters'] as $key => $value) {
$this->container
->setParameter($key, $this
->resolveServices($value));
}
// services
foreach ($content['services'] as $id => $service) {
$this
->parseDefinition($id, $service, $filename);
}
}