Zend\Expressive\Application::attachRouteResultObserver PHP Method

attachRouteResultObserver() public method

Attach a route result observer.
Deprecation: This method will be removed in v1.1.
public attachRouteResultObserver ( Zend\Expressive\Router\RouteResultObserverInterface $observer )
$observer Zend\Expressive\Router\RouteResultObserverInterface
    public function attachRouteResultObserver(Router\RouteResultObserverInterface $observer)
    {
        $this->routeResultObservers[] = $observer;
    }