# UserProvider

Implements \Symfony\Component\Security\Core\User\UserProviderInterface

Model user provider

author | Lukas Korinek
package | Default

### Methods

## __construct

    __construct(\NPS\Repository\UserRepository $repo)

### Arguments

#### $repo

`\NPS\Repository\UserRepository`

## Username treated as email

    loadUserByUsername( $username)

inheritDoc |

### Arguments

#### $username

``

## refreshUser

    refreshUser(\Symfony\Component\Security\Core\User\UserInterface $user)

inheritDoc |

### Arguments

#### $user

`\Symfony\Component\Security\Core\User\UserInterface`

## supportsClass

    supportsClass( $class)

inheritDoc |

### Arguments

#### $class

``

### Properties

## repo

    repo : \NPS\Repository\UserRepository

var |

### Type(s)

`\NPS\Repository\UserRepository`