39 lines
664 B
PHP
39 lines
664 B
PHP
|
<?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;
|
||
|
|
||
|
}
|
||
|
}
|