mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 08:24:00 +08:00
31 lines
648 B
PHP
31 lines
648 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Nextcloud - passman
|
||
|
*
|
||
|
* This file is licensed under the Affero General Public License version 3 or
|
||
|
* later. See the COPYING file.
|
||
|
*
|
||
|
* @author Sander Brand <brantje@gmail.com>
|
||
|
* @copyright Sander Brand 2016
|
||
|
*/
|
||
|
|
||
|
namespace OCA\Passman\Service;
|
||
|
|
||
|
use OCP\IConfig;
|
||
|
use OCP\AppFramework\Db\DoesNotExistException;
|
||
|
|
||
|
use OCA\Passman\Db\CredentialMapper;
|
||
|
|
||
|
|
||
|
class CredentialService {
|
||
|
|
||
|
private $credentialMapper;
|
||
|
|
||
|
public function __construct(CredentialMapper $credentialMapper) {
|
||
|
$this->credentialMapper = $credentialMapper;
|
||
|
}
|
||
|
|
||
|
public function createCredential($credential) {
|
||
|
return $this->credentialMapper->create($credential);
|
||
|
}
|
||
|
}
|