private function getManagerForRequest(Request $request)
    {
        if (!$request->getManager()) {
            $request->setManager($this->managerList->get());
        }

        return $request->getManager();
    }
private function getManagerForRequest(Request $request)
    {
        if (!$request->getManager()) {
            $request->setManager($this->managerList->get());
        }

        return $request->getManager();
    }
private function getManagerForRequest ( Request $ request ) { if ( ! $ request -> getManager ( ) ) { $ request -> setManager ( $ this -> managerList -> get ( ) ) ; } return $ request -> getManager ( ) ; }
Returns a manager for the Request.

It prefers the manager that is already set, but if it is
not, then it adds a random manager from the manager list.

@param Request $request

@return string
Returns a manager for the Request .