protected function determineZone(Request $request)
    {
        if ($request->isXmlHttpRequest() || $this->isPathApplicable($request, Zone::ASYNC)) {
            return Zone::ASYNC;
        } elseif ($this->isPathApplicable($request, Zone::BACKEND)) {
            return Zone::BACKEND;
        }

        return Zone::FRONTEND;
    }
protected function determineZone(Request $request)
    {
        if ($request->isXmlHttpRequest() || $this->isPathApplicable($request, Zone::ASYNC)) {
            return Zone::ASYNC;
        } elseif ($this->isPathApplicable($request, Zone::BACKEND)) {
            return Zone::BACKEND;
        }

        return Zone::FRONTEND;
    }
protected function determineZone ( Request $ request ) { if ( $ request -> isXmlHttpRequest ( ) || $ this -> isPathApplicable ( $ request , Zone :: ASYNC ) ) { return Zone :: ASYNC ; } elseif ( $ this -> isPathApplicable ( $ request , Zone :: BACKEND ) ) { return Zone :: BACKEND ; } return Zone :: FRONTEND ; }
Determine the zone and return it.

@param Request $request

@return string
Determine the zone and return it .