src/Web/Servlet/DispatcherServlet.php
protected function getHandlerAdapter($handler)
    {
        foreach ($this->handlerAdapters as $ha) {
            if ($ha->supports($handler)) {
                return $ha;
            }
        }
        throw new \Exception("No adapter for handler [".get_class($handler)."]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler.");
    }
protected function getHandlerAdapter($handler)
    {
        foreach ($this->handlerAdapters as $ha) {
            if ($ha->supports($handler)) {
                return $ha;
            }
        }
        throw new \Exception("No adapter for handler [".get_class($handler)."]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler.");
    }
protected function getHandlerAdapter ( $ handler ) { foreach ( $ this -> handlerAdapters as $ ha ) { if ( $ ha -> supports ( $ handler ) ) { return $ ha ; } } throw new \ Exception ( "No adapter for handler [" . get_class ( $ handler ) . "]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler." ) ; }
Return the HandlerAdapter for this handler object.
@param mixed $handler the handler object to find an adapter for
@return HandlerAdapter The handler adapter for the given handler
@throws \Exception if no HandlerAdapter can be found for the handler.
Return the HandlerAdapter for this handler object .