mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
update msgphp bundles to 0.10
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
use MsgPhp\User\Entity\User;
|
||||
use MsgPhp\User\User;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return function (ContainerConfigurator $container) {
|
||||
+4
-4
@@ -3,8 +3,8 @@
|
||||
namespace App\Entity\User;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use MsgPhp\User\Entity\User as BaseUser;
|
||||
use MsgPhp\User\UserIdInterface;
|
||||
use MsgPhp\User\User as BaseUser;
|
||||
use MsgPhp\User\UserId;
|
||||
|
||||
/**
|
||||
* @ORM\Entity()
|
||||
@@ -14,12 +14,12 @@ class User extends BaseUser
|
||||
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_user_id", length=191) */
|
||||
private $id;
|
||||
|
||||
public function __construct(UserIdInterface $id)
|
||||
public function __construct(UserId $id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): UserIdInterface
|
||||
public function getId(): UserId
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
Reference in New Issue
Block a user