public function staticAction($key)
    {
        if ($key && is_array($this->staticUriMocks) && array_key_exists($key, $this->staticUriMocks)) {
            $config = $this->staticUriMocks[$key];
            $this->response->setHeader('Content-Type', $config['contentType']);
            return file_get_contents($config['path']);
        }

        throw new TargetNotFoundException();
    }
public function staticAction($key)
    {
        if ($key && is_array($this->staticUriMocks) && array_key_exists($key, $this->staticUriMocks)) {
            $config = $this->staticUriMocks[$key];
            $this->response->setHeader('Content-Type', $config['contentType']);
            return file_get_contents($config['path']);
        }

        throw new TargetNotFoundException();
    }
public function staticAction ( $ key ) { if ( $ key && is_array ( $ this -> staticUriMocks ) && array_key_exists ( $ key , $ this -> staticUriMocks ) ) { $ config = $ this -> staticUriMocks [ $ key ] ; $ this -> response -> setHeader ( 'Content-Type' , $ config [ 'contentType' ] ) ; return file_get_contents ( $ config [ 'path' ] ) ; } throw new TargetNotFoundException ( ) ; }
Return the given static content as defined in the configuration

@param string $key
@return void
Return the given static content as defined in the configuration