Newscoop\NewscoopBundle\Security\User\SimpleUserProvider::__construct PHP Method

__construct() public method

public __construct ( $em, array $config )
$config array
    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();
        }
    }