src/View/Helper/InsertFile.php
public function listenToRenderer()
    {
        if ($this->ListenersUnaware) {
            // set a listener at the end of the Rendering-Process
            // to announce what files have been inserted
            $this->ListenersUnaware = false;
            $view = $this->serviceManager->get('View');
            $viewEvents = $view->getEventManager();
            // rendering ist over
            // get the attached Files very early
            // before any other postprocessing has started
            $viewEvents->attach(ViewEvent::EVENT_RESPONSE, array($this, 'anounceAttachedFiles'), 1000);
        }
    }
public function listenToRenderer()
    {
        if ($this->ListenersUnaware) {
            // set a listener at the end of the Rendering-Process
            // to announce what files have been inserted
            $this->ListenersUnaware = false;
            $view = $this->serviceManager->get('View');
            $viewEvents = $view->getEventManager();
            // rendering ist over
            // get the attached Files very early
            // before any other postprocessing has started
            $viewEvents->attach(ViewEvent::EVENT_RESPONSE, array($this, 'anounceAttachedFiles'), 1000);
        }
    }
hook into the rendering-process to provide a summary of all included files