public function __construct($em, array $config)
{
$this->em = $em;
$this->config = $config;
if (file_exists($this->config['users_file'])) {
$this->users = json_decode(file_get_contents($this->config['users_file']), true);
} else {
$this->users = array();
}
}