protected function getParameter(/*# string */ $name)
    {
        if ($this->hasResolver()) {
            $found = $this->getResolver()->get($name);
        } else {
            // break into parts by '.'
            $parts = explode('.', $name);
            $found = $this->parameters;
            while (null !== ($part = array_shift($parts))) {
                if (!isset($found[$part])) {
                    $found = null;
                    break;
                }
                $found = $found[$part];
            }
        }

        if (null === $found) {
            throw new NotFoundException(
                Message::get(Message::PARAMETER_NOT_FOUND, $name),
                Message::PARAMETER_NOT_FOUND
                );
        }

        return $found;
    }
protected function getParameter(/*# string */ $name)
    {
        if ($this->hasResolver()) {
            $found = $this->getResolver()->get($name);
        } else {
            // break into parts by '.'
            $parts = explode('.', $name);
            $found = $this->parameters;
            while (null !== ($part = array_shift($parts))) {
                if (!isset($found[$part])) {
                    $found = null;
                    break;
                }
                $found = $found[$part];
            }
        }

        if (null === $found) {
            throw new NotFoundException(
                Message::get(Message::PARAMETER_NOT_FOUND, $name),
                Message::PARAMETER_NOT_FOUND
                );
        }

        return $found;
    }
protected function getParameter ( /*# string */ $ name ) { if ( $ this -> hasResolver ( ) ) { $ found = $ this -> getResolver ( ) -> get ( $ name ) ; } else { // break into parts by '.' $ parts = explode ( '.' , $ name ) ; $ found = $ this -> parameters ; while ( null !== ( $ part = array_shift ( $ parts ) ) ) { if ( ! isset ( $ found [ $ part ] ) ) { $ found = null ; break ; } $ found = $ found [ $ part ] ; } } if ( null === $ found ) { throw new NotFoundException ( Message :: get ( Message :: PARAMETER_NOT_FOUND , $ name ) , Message :: PARAMETER_NOT_FOUND ) ; } return $ found ; }
Get this paramter's value either a string or an associate array

```php
$this->set('cache.dir', '/var/tmp');

// will return an array ['dir' => '/var/tmp'];
$result = $this->getParameter('cache');

// will return a string, 'var/tmp'
$result = $this->getParameter('cache.dir');
```

@param  string $name parameter name
@return string|array
@throws NotFoundException if not found
@access protected
Get this paramter s value either a string or an associate array