src/Web/Servlet/DispatcherServlet.php
public function service(ServletRequestInterface $servletRequest, ServletResponseInterface $servletResponse)
    {
        // TODO: Add debug logging
        /**
         * @var $logger \Psr\Log\LoggerInterface
         */
        $logger = $servletRequest->getContext()->getInitialContext()->getSystemLogger();
        $logger->debug('Starting dispatch process for a new http request.');
        $attributeSnapshot = array_merge(array(), $servletRequest->getParameterMap());
        // TODO: Inject ViewResolver & Application Context into request
        try {
            $this->dispatch($servletRequest, $servletResponse);
        } catch (\Exception $ex) {
            $logger->error('Dispatch failed', $ex);
        }
    }
public function service(ServletRequestInterface $servletRequest, ServletResponseInterface $servletResponse)
    {
        // TODO: Add debug logging
        /**
         * @var $logger \Psr\Log\LoggerInterface
         */
        $logger = $servletRequest->getContext()->getInitialContext()->getSystemLogger();
        $logger->debug('Starting dispatch process for a new http request.');
        $attributeSnapshot = array_merge(array(), $servletRequest->getParameterMap());
        // TODO: Inject ViewResolver & Application Context into request
        try {
            $this->dispatch($servletRequest, $servletResponse);
        } catch (\Exception $ex) {
            $logger->error('Dispatch failed', $ex);
        }
    }
public function service ( ServletRequestInterface $ servletRequest , ServletResponseInterface $ servletResponse ) { // TODO: Add debug logging /**
         * @var $logger \Psr\Log\LoggerInterface
         */ $ logger = $ servletRequest -> getContext ( ) -> getInitialContext ( ) -> getSystemLogger ( ) ; $ logger -> debug ( 'Starting dispatch process for a new http request.' ) ; $ attributeSnapshot = array_merge ( array ( ) , $ servletRequest -> getParameterMap ( ) ) ; // TODO: Inject ViewResolver & Application Context into request try { $ this -> dispatch ( $ servletRequest , $ servletResponse ) ; } catch ( \ Exception $ ex ) { $ logger -> error ( 'Dispatch failed' , $ ex ) ; } }
Entry point for requests.
Dispatch the request to a controller here
@param ServletRequestInterface  $servletRequest  The current request
@param ServletResponseInterface $servletResponse The current response
@return void
Entry point for requests . Dispatch the request to a controller here