nextcloud/apps/encryption/lib/setup.php

39 lines
664 B
PHP
Raw Normal View History

2015-02-24 21:05:19 +03:00
<?php
/**
* @author Clark Tomlinson <fallen013@gmail.com>
* @since 3/6/15, 11:30 AM
* @link http:/www.clarkt.com
* @copyright Clark Tomlinson © 2015
*
*/
namespace OCA\Encryption;
use OCP\ILogger;
use OCP\IUser;
use OCP\IUserSession;
class Setup {
/**
* @var ILogger
*/
protected $logger;
/**
* @var IUser
*/
protected $user;
/**
* Setup constructor.
*
* @param ILogger $logger
* @param IUserSession $userSession
*/
public function __construct(ILogger $logger, IUserSession $userSession) {
$this->logger = $logger;
$this->user = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false;
}
}