Exemplo n.º 1
0
 /**
  * Static workaround
  * @return Expiration
  */
 protected static function getExpiration()
 {
     if (is_null(self::$application)) {
         self::$application = new Application();
     }
     return self::$application->getContainer()->query('Expiration');
 }
Exemplo n.º 2
0
 protected function fixDIForJobs()
 {
     $application = new Application();
     $this->expiration = $application->getContainer()->query('Expiration');
     $this->userManager = \OC::$server->getUserManager();
 }