public function httpGet(RequestInterface $request, ResponseInterface $response)
    {
        $queryParams = $request->getQueryParameters();
        if (!array_key_exists('mount', $queryParams)) {
            return;
        }

        $currentUri = $request->getAbsoluteUrl();

        // Stripping off everything after the ?
        list($currentUri) = explode('?', $currentUri);

        $this->davMount($response, $currentUri);

        // Returning false to break the event chain
        return false;
    }
public function httpGet(RequestInterface $request, ResponseInterface $response)
    {
        $queryParams = $request->getQueryParameters();
        if (!array_key_exists('mount', $queryParams)) {
            return;
        }

        $currentUri = $request->getAbsoluteUrl();

        // Stripping off everything after the ?
        list($currentUri) = explode('?', $currentUri);

        $this->davMount($response, $currentUri);

        // Returning false to break the event chain
        return false;
    }
public function httpGet ( RequestInterface $ request , ResponseInterface $ response ) { $ queryParams = $ request -> getQueryParameters ( ) ; if ( ! array_key_exists ( 'mount' , $ queryParams ) ) { return ; } $ currentUri = $ request -> getAbsoluteUrl ( ) ; // Stripping off everything after the ? list ( $ currentUri ) = explode ( '?' , $ currentUri ) ; $ this -> davMount ( $ response , $ currentUri ) ; // Returning false to break the event chain return false ; }
'beforeMethod' event handles. This event handles intercepts GET requests ending
with ?mount.

@param RequestInterface  $request
@param ResponseInterface $response

@return bool
beforeMethod event handles . This event handles intercepts GET requests ending with ?mount .