/** * Get a parameter or a service * * @param string $key Key * * @return mixed * @throws \OutOfBoundsException */ public function raw($key) { if (!$this->values->has($key)) { throw new \OutOfBoundsException(sprintf("Container service or parameter '%s' does not exist.", $key)); } return $this->values[$key]; }