attach() attach(\Zend\EventManager\EventManagerInterface $events) Attach listeners Parameters \Zend\EventManager\EventManagerInterface $events
detach() detach(\Zend\EventManager\EventManagerInterface $events) Detach listeners Parameters \Zend\EventManager\EventManagerInterface $events
getBlacklist() getBlacklist() : \Spork\Mvc\Controller\Plugin\array: Get list of blacklist routes Returns \Spork\Mvc\Controller\Plugin\array:
setBlacklist() setBlacklist(array $blacklist) Set list of blacklist routes Parameters array $blacklist
ignore() ignore(string $flag = true) Ignore matched route to prevent plugin from returning to this page Parameters string $flag
redirect() redirect(string $default = 'home') Redirect to last route Parameters string $default Default route to use if previous route not found
injectPlugin() injectPlugin(\Zend\Mvc\MvcEvent $event) Inject instance into controller plugin manager. This ensures controller plugin is same instance as event listener. Parameters \Zend\Mvc\MvcEvent $event
storeRoute() storeRoute(\Zend\Mvc\MvcEvent $event) Store route in session so it can be returned to later. Parameters \Zend\Mvc\MvcEvent $event