Example #1
0
 /**
  * Get manager instance.
  *
  * @param Zikula_Core $core Core instance (optional).
  *
  * @return Zikula_ServiceManager
  */
 public static function getManager(Zikula_Core $core = null)
 {
     if (self::$serviceManager) {
         return self::$serviceManager;
     }
     self::$serviceManager = $core->getServiceManager();
     return self::$serviceManager;
 }
Example #2
0
 public static function setContainer(ContainerInterface $container)
 {
     self::$serviceManager = $container;
 }