public function instantiate($profile, $provider)
    {
        $this->provider = $provider;

        switch ($provider) {
            case 'facebook':
                $this->info = $this->parseFb($profile);
            break;

            case 'twitter':
                $this->info = $this->parseTwt($profile);
            break;
        }

        return $this;
    }
public function instantiate($profile, $provider)
    {
        $this->provider = $provider;

        switch ($provider) {
            case 'facebook':
                $this->info = $this->parseFb($profile);
            break;

            case 'twitter':
                $this->info = $this->parseTwt($profile);
            break;
        }

        return $this;
    }
public function instantiate ( $ profile , $ provider ) { $ this -> provider = $ provider ; switch ( $ provider ) { case 'facebook' : $ this -> info = $ this -> parseFb ( $ profile ) ; break ; case 'twitter' : $ this -> info = $ this -> parseTwt ( $ profile ) ; break ; } return $ this ; }
Instantiates a profile by parsing
it and mapping it to commonly used
values across the different providers.

@param object $profile
@param string $provider

@return Vinelab\Auth\Social\Profile
Instantiates a profile by parsing it and mapping it to commonly used values across the different providers .