/**
  * Loads all registered actions of the active package.
  */
 protected static function loadActions()
 {
     $environment = class_exists('WCFACP') ? 'admin' : 'user';
     WCF::getCache()->addResource('eventListener-' . PACKAGE_ID, WCF_DIR . 'cache/cache.eventListener-' . PACKAGE_ID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderEventListener.class.php');
     $cache = WCF::getCache()->get('eventListener-' . PACKAGE_ID);
     if (isset($cache['actions'][$environment])) {
         self::$actions = $cache['actions'][$environment];
     }
     if (isset($cache['inheritedActions'][$environment])) {
         self::$inheritedActions = $cache['inheritedActions'][$environment];
     }
     unset($cache);
     if (!is_array(self::$actions)) {
         self::$actions = array();
     }
     if (!is_array(self::$inheritedActions)) {
         self::$inheritedActions = array();
     }
 }