Merge pull request #50 from MKiselev/issue_49

Issue #49 fix | make() should pass attributes as third parameter
This commit is contained in:
Antonio Ramirez
2017-08-09 15:38:16 +02:00
committed by GitHub
4 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# CHANGELOG
## 1.0.13 - Work in progress
- Fix #49: Fix wrong call of method make() for set attributes (MKiselev)
- Enh #46: Use safeUp()/safeDown() instead up()/down() in migrations (MKiselev)
- Fix #51: Typo fix rememberLoginLifeSpan to rememberLoginLifespan (MKiselev)

View File

@ -145,6 +145,7 @@ class RegistrationController extends Controller
/** @var User $user */
$user = $this->make(
User::class,
[],
['scenario' => 'connect', 'username' => $account->username, 'email' => $account->email]
);
$event = $this->make(SocialNetworkConnectEvent::class, [$user, $account]);

View File

@ -80,6 +80,7 @@ class SocialNetworkAccountConnectService implements ServiceInterface
$account = $this->make(
SocialNetworkAccount::class,
[],
[
'provider' => $this->client->getId(),
'client_id' => $data['id'],

View File

@ -91,6 +91,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface
/** @var SocialNetworkAccount $account */
$account = $this->controller->make(
SocialNetworkAccount::class,
[],
[
'provider' => $this->client->getId(),
'client_id' => $data['id'],
@ -119,6 +120,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface
/** @var User $user */
$user = $this->controller->make(
User::class,
[],
[
'scenario' => 'connect',
'username' => $account->username,