* @copyright Sander Brand 2016 */ namespace OCA\Passman\Cron; use OCA\Passman\Service\CredentialService; use OCA\Passman\Utility\Utils; use \OCA\Passman\AppInfo\Application; class ExpireCredentials { public static function run() { $app = new Application(); $container = $app->getContainer(); $container->query('CronService')->expireCredentials(); } }