Update MsgPHP user + EAV bundle to v0.2

This commit is contained in:
Roland Franssen
2018-03-07 11:51:15 +01:00
parent c10e3ccc67
commit f3bf569958
10 changed files with 74 additions and 36 deletions
@@ -0,0 +1,12 @@
<?php
use MsgPhp\User\Entity\User;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return function (ContainerConfigurator $container) {
$container->extension('msgphp_user', [
'class_mapping' => [
User::class => \App\Entity\User\User::class,
],
]);
};
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"MsgPhp\\UserBundle\\MsgPhpUserBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
@@ -0,0 +1,24 @@
<?php
namespace App\Entity\User;
use MsgPhp\User\Entity\User as BaseUser;
use MsgPhp\User\UserIdInterface;
/**
* @final
*/
class User extends BaseUser
{
private $id;
public function __construct(UserIdInterface $id)
{
$this->id = $id;
}
public function getId(): UserIdInterface
{
return $this->id;
}
}