for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the tiqr project.
*
* The tiqr project aims to provide an open implementation for
* authentication using mobile devices. It was initiated by
* SURFnet and developed by Egeniq.
* More information: http://www.tiqr.org
* @author Ivo Jansch <[email protected]>
* @package tiqr
* @license New BSD License - See LICENSE file for details.
* @copyright (C) 2010-2012 SURFnet BV
*/
use Psr\Log\LoggerInterface;
* This user storage implementation implements a simple user storage using json files.
* This is mostly for demonstration and development purposes. In a production environment
* please supply your own implementation that hosts the data in your user database OR
* in a secure (e.g. hardware encrypted) storage.
* @author ivo
* @see Tiqr_UserStorage::getStorage()
* @see Tiqr_UserStorage_Interface
* Supported options:
* path : Path to the directory where the user data is stored
class Tiqr_UserStorage_File extends Tiqr_UserStorage_GenericStore
{
use FileTrait;
protected $path;
* Create an instance
* @param array $config
* @param LoggerInterface $logger
public function __construct(array $config, LoggerInterface $logger)
parent::__construct($config, $logger);
$this->path = $config["path"];
}