Example #1
0
 /**
  * @param IConfig $config
  * @param View $view
  * @param IDBConnection $connection
  * @param ILogger $logger
  */
 public function __construct(IConfig $config, View $view, IDBConnection $connection, ILogger $logger)
 {
     $this->view = $view;
     $this->view->disableCacheUpdate();
     $this->connection = $connection;
     $this->moduleId = \OCA\Encryption\Crypto\Encryption::ID;
     $this->config = $config;
     $this->logger = $logger;
     $this->installedVersion = $this->config->getAppValue('files_encryption', 'installed_version', '-1');
 }