eZ\Bundle\EzPublishCoreBundle\EventListener\DynamicSettingsListener::getSubscribedEvents PHP Метод

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( )
    public static function getSubscribedEvents()
    {
        return array(MVCEvents::SITEACCESS => array('onSiteAccessMatch', 254), MVCEvents::CONFIG_SCOPE_CHANGE => array('onConfigScopeChange', 90), MVCEvents::CONFIG_SCOPE_RESTORE => array('onConfigScopeChange', 90));
    }

Usage Example

 public function testGetSubscribedEvents()
 {
     $this->assertSame(array(MVCEvents::SITEACCESS => array('onSiteAccessMatch', 254), MVCEvents::CONFIG_SCOPE_CHANGE => array('onConfigScopeChange', 90), MVCEvents::CONFIG_SCOPE_RESTORE => array('onConfigScopeChange', 90)), DynamicSettingsListener::getSubscribedEvents());
 }