update msgphp bundles to 0.10

This commit is contained in:
Roland Franssen
2019-03-27 14:34:22 +01:00
parent bce79fc5f0
commit 3be0907f47
8 changed files with 19 additions and 18 deletions
@@ -1,13 +1,14 @@
<?php
use MsgPhp\Eav\Entity\{Attribute, AttributeValue};
use MsgPhp\Eav\Attribute;
use MsgPhp\Eav\AttributeValue;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return function (ContainerConfigurator $container) {
$container->extension('msgphp_eav', [
'class_mapping' => [
Attribute::class => \App\Entity\Eav\Attribute::class,
AttributeValue::class => \App\Entity\Eav\AttributeValue::class,
Attribute::class => \App\Entity\Attribute::class,
AttributeValue::class => \App\Entity\AttributeValue::class,
],
]);
};
@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Eav;
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use MsgPhp\Eav\AttributeIdInterface;
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
use MsgPhp\Eav\Attribute as BaseAttribute;
use MsgPhp\Eav\AttributeId;
/**
* @ORM\Entity()
@@ -14,12 +14,12 @@ class Attribute extends BaseAttribute
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_attribute_id", length=191) */
private $id;
public function __construct(AttributeIdInterface $id)
public function __construct(AttributeId $id)
{
$this->id = $id;
}
public function getId(): AttributeIdInterface
public function getId(): AttributeId
{
return $this->id;
}
@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Eav;
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use MsgPhp\Eav\AttributeValueIdInterface;
use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue;
use MsgPhp\Eav\AttributeValue as BaseAttributeValue;
use MsgPhp\Eav\AttributeValueId;
/**
* @ORM\Entity()
@@ -14,14 +14,14 @@ class AttributeValue extends BaseAttributeValue
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_attribute_value_id", length=191) */
private $id;
public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)
public function __construct(AttributeValueId $id, Attribute $attribute, $value)
{
parent::__construct($attribute, $value);
$this->id = $id;
}
public function getId(): AttributeValueIdInterface
public function getId(): AttributeValueId
{
return $this->id;
}
@@ -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) {
@@ -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;
}