public function getParameter($name)
	{
		$chunks = explode('.', $name);

		$name = $chunks[0] .
			(isset($chunks[1]) ? '.' . $chunks[1] : '');

		if (!isset($this->parameters[$name])) {
			throw new ReferenceException(sprintf('Parameter "%s" is not defined in the container', $name));
		}

		$value = $this->parameters[$name];

		if (count($chunks) > 2) {
			$path = array_slice($chunks, 2);

			while ($key = array_shift($path)) {
				if (!array_key_exists($key, $value)) {
					throw new ReferenceException(sprintf('Lost at sub-key "%s" for parameter "%s"', $key, $name));
				}

				$value = $value[$key];
			}
		}

		return $value;
	}
public function getParameter($name)
	{
		$chunks = explode('.', $name);

		$name = $chunks[0] .
			(isset($chunks[1]) ? '.' . $chunks[1] : '');

		if (!isset($this->parameters[$name])) {
			throw new ReferenceException(sprintf('Parameter "%s" is not defined in the container', $name));
		}

		$value = $this->parameters[$name];

		if (count($chunks) > 2) {
			$path = array_slice($chunks, 2);

			while ($key = array_shift($path)) {
				if (!array_key_exists($key, $value)) {
					throw new ReferenceException(sprintf('Lost at sub-key "%s" for parameter "%s"', $key, $name));
				}

				$value = $value[$key];
			}
		}

		return $value;
	}
public function getParameter ( $ name ) { $ chunks = explode ( '.' , $ name ) ; $ name = $ chunks [ 0 ] . ( isset ( $ chunks [ 1 ] ) ? '.' . $ chunks [ 1 ] : '' ) ; if ( ! isset ( $ this -> parameters [ $ name ] ) ) { throw new ReferenceException ( sprintf ( 'Parameter "%s" is not defined in the container' , $ name ) ) ; } $ value = $ this -> parameters [ $ name ] ; if ( count ( $ chunks ) > 2 ) { $ path = array_slice ( $ chunks , 2 ) ; while ( $ key = array_shift ( $ path ) ) { if ( ! array_key_exists ( $ key , $ value ) ) { throw new ReferenceException ( sprintf ( 'Lost at sub-key "%s" for parameter "%s"' , $ key , $ name ) ) ; } $ value = $ value [ $ key ] ; } } return $ value ; }
Gets parameter by name

@param $name
@throws Exception\ParameterNotFoundException
@return mixed
Gets parameter by name