Issue #49 fix make() should pass attributes as third parameter not second

This commit is contained in:
MKiselev
2017-08-09 01:25:43 +05:00
parent dbfe4308d5
commit 4c30ba66eb
4 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# CHANGELOG # CHANGELOG
## 1.0.13 - Work in progress ## 1.0.13 - Work in progress
- Fix #49: Fix wrong call of method make() for set attributes (MKiselev)
## 1.0.12 - August 6, 2017 ## 1.0.12 - August 6, 2017
- Bug Fix: Modify ResetPasswordService to forcely update password_hash field (tonydspaniard) - Bug Fix: Modify ResetPasswordService to forcely update password_hash field (tonydspaniard)

View File

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

View File

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

View File

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