class StaticViewListener extends BaseListener

StaticViewListener watches dispatcher actions.

It will only run on the FIRST loop and checks to see if the current route is cached. If it is, forwards to the static view loader.

Methods

beforeExecuteRoute(Event $event, Dispatcher $dispatcher)

Watch beforeExecuteRoute event

Details

at line 21
beforeExecuteRoute(Event $event, Dispatcher $dispatcher)

Watch beforeExecuteRoute event

Parameters

Event $event
Dispatcher $dispatcher