MvcListeners

extends Zend\EventManager\AbstractListenerAggregate
Methods Summary
public
# attach( Zend\EventManager\EventManagerInterface $events , $priority = 1 )
{@inheritDoc}
public
# bootstrapSession( Zend\Mvc\MvcEvent $event )
Bootstrap the session manager.
public
# bootstrapLocale( Zend\Mvc\MvcEvent $event )
Bootstrap the locale. Sets the runtime locale and translator language to the locale set by the logged-in user, the global settings, or the configuration file, in that order of priority.
public
# redirectToInstallation( Zend\Mvc\MvcEvent $event )
Redirect all requests to install route if Omeka is not installed.
public
# redirectToMigration( Zend\Mvc\MvcEvent $event )
Redirect requests if Omeka needs database migrations. Updates the installed version when the code version is out of sync and there are no migrations to perform. When there are migrations to perform, redirects to a migrate page in the admin route, and to a maintenance page on all other routes.
public
# redirectToLogin( Zend\Mvc\MvcEvent $event )
Redirect all admin requests to login route if user not logged in.
public
# authenticateApiKey( Zend\Mvc\MvcEvent $event )
Authorize the current user against an API key.
public
# prepareAdmin( Zend\Mvc\MvcEvent $event )
Prepare the site administrative interface.
public
# preparePublicSite( Zend\Mvc\MvcEvent $event )
Prepare the public site.
public
# checkExcessivePost( Zend\Mvc\MvcEvent $event )
protected
# prepareSite( Zend\Mvc\MvcEvent $event )
Get the current site by slug and inject it where needed. Returns false if the site is not found or another error occured.
public
# authorizeUserAgainstController( Zend\Mvc\MvcEvent $event )
Authorize the current user against the dispatched controller and action.
Methods inherited from Zend\EventManager\AbstractListenerAggregate
detach()
Properties inherited from Zend\EventManager\AbstractListenerAggregate
$listeners