/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/src/Social
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/src/Social/MapUser.php (1345B)
getConfig('mapper');
if (is_string($mapper)) {
$mapper = $this->buildMapper($mapper);
}
$user = $mapper($data);
$user['provider'] = $service->getProviderName();
return $user;
}
/**
* Build the mapper object
*
* @param string $className of mapper
* @return \Closure
*/
protected function buildMapper(string $className)
{
if (!class_exists($className)) {
throw new \InvalidArgumentException(__('Provider mapper class {0} does not exist', $className));
}
return new $className();
}
}