public function setResponseOfPath( $path, ResponseInterface $response ) {
		$ref = InternalServer::storeResponse($this->tmpDir, $response);

		$aliasPath = InternalServer::aliasPath($this->tmpDir, $path);

		if( !file_put_contents($aliasPath, $ref) ) {
			throw new \RuntimeException('Failed to store path alias');
		}

		return $this->getServerRoot() . $path;
	}
public function setResponseOfPath( $path, ResponseInterface $response ) {
		$ref = InternalServer::storeResponse($this->tmpDir, $response);

		$aliasPath = InternalServer::aliasPath($this->tmpDir, $path);

		if( !file_put_contents($aliasPath, $ref) ) {
			throw new \RuntimeException('Failed to store path alias');
		}

		return $this->getServerRoot() . $path;
	}
public function setResponseOfPath ( $ path , ResponseInterface $ response ) { $ ref = InternalServer :: storeResponse ( $ this -> tmpDir , $ response ) ; $ aliasPath = InternalServer :: aliasPath ( $ this -> tmpDir , $ path ) ; if ( ! file_put_contents ( $ aliasPath , $ ref ) ) { throw new \ RuntimeException ( 'Failed to store path alias' ) ; } return $ this -> getServerRoot ( ) . $ path ; }
Set a specified path to provide a specific response

@param string                                  $path
@param \donatj\MockWebServer\ResponseInterface $response
@return string
Set a specified path to provide a specific response