src/Authentication/User/UserProviderSegmentalizer.php
public function loadUserByUsername($username)
    {
        if (!isset($this->cachedUsers[$username])) {
            $this->cachedUsers[$username] = $this->userProvider->loadUserByUsername($username);
        }
        return $this->cachedUsers[$username];
    }
public function loadUserByUsername($username)
    {
        if (!isset($this->cachedUsers[$username])) {
            $this->cachedUsers[$username] = $this->userProvider->loadUserByUsername($username);
        }
        return $this->cachedUsers[$username];
    }
public function loadUserByUsername ( $ username ) { if ( ! isset ( $ this -> cachedUsers [ $ username ] ) ) { $ this -> cachedUsers [ $ username ] = $ this -> userProvider -> loadUserByUsername ( $ username ) ; } return $ this -> cachedUsers [ $ username ] ; }
Get user from cached, otherwise get it from the source User Provider.
@param string $username
@return type
Get user from cached otherwise get it from the source User Provider .