diff --git a/.idea/composerJson.xml b/.idea/composerJson.xml
deleted file mode 100644
index 1b074300..00000000
--- a/.idea/composerJson.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index c36e97d4..00000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
deleted file mode 100644
index c53426a2..00000000
--- a/.idea/php.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/sf4-test.iml b/.idea/sf4-test.iml
deleted file mode 100644
index af68339b..00000000
--- a/.idea/sf4-test.iml
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml
deleted file mode 100644
index ba828bce..00000000
--- a/.idea/symfony2.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7f..00000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index cb369757..00000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,766 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $PROJECT_DIR$/composer.json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- db_user
- ManyToOne
-
-
- $PROJECT_DIR$/src/Entity
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- DEFINITION_ORDER
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1520949897852
-
-
- 1520949897852
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 9180c471..8a3235ba 100644
--- a/composer.json
+++ b/composer.json
@@ -4,6 +4,7 @@
"require": {
"php": "^7.0.8",
"ext-iconv": "*",
+ "msgphp/user-bundle": "^0.2.2",
"sensio/framework-extra-bundle": "^5.1",
"sensiolabs/security-checker": "^4.1",
"symfony/asset": "^3.4",
diff --git a/composer.lock b/composer.lock
index 67b7f162..3dcd5097 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "fb1fa43df94930a543d8c27c9b62c4ee",
+ "content-hash": "a62d8cfe14d8fba5c8ab6cc1ce80f34b",
"packages": [
{
"name": "composer/ca-bundle",
@@ -1259,6 +1259,193 @@
],
"time": "2017-06-19T01:22:40+00:00"
},
+ {
+ "name": "msgphp/domain",
+ "version": "v0.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/msgphp/domain.git",
+ "reference": "2dc12caaf3252bcb3b20c81dc67ec3d2f699f11d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/msgphp/domain/zipball/2dc12caaf3252bcb3b20c81dc67ec3d2f699f11d",
+ "reference": "2dc12caaf3252bcb3b20c81dc67ec3d2f699f11d",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1.0"
+ },
+ "require-dev": {
+ "doctrine/doctrine-bundle": "^1.8",
+ "doctrine/orm": "^2.6",
+ "psr/container": "^1.0",
+ "ramsey/uuid": "^3.7",
+ "ramsey/uuid-doctrine": "^1.4",
+ "simple-bus/message-bus": "^3.0",
+ "symfony/config": "^3.4|^4.0",
+ "symfony/dependency-injection": "^3.4|^4.0",
+ "symfony/http-kernel": "^3.4|^4.0",
+ "symfony/phpunit-bridge": "^3.4|^4.0",
+ "symfony/property-access": "^3.4|^4.0",
+ "symfony/var-dumper": "^3.4|^4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "MsgPhp\\Domain\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Roland Franssen",
+ "email": "franssen.roland@gmail.com"
+ }
+ ],
+ "description": "Base domain layer",
+ "keywords": [
+ "entity"
+ ],
+ "time": "2018-03-11T14:57:33+00:00"
+ },
+ {
+ "name": "msgphp/user",
+ "version": "v0.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/msgphp/user.git",
+ "reference": "fe850de68455425039f1cc36aa43410154356989"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/msgphp/user/zipball/fe850de68455425039f1cc36aa43410154356989",
+ "reference": "fe850de68455425039f1cc36aa43410154356989",
+ "shasum": ""
+ },
+ "require": {
+ "msgphp/domain": "^0.2|^1.0"
+ },
+ "require-dev": {
+ "doctrine/orm": "^2.6",
+ "msgphp/eav": "^0.2",
+ "sensio/framework-extra-bundle": "^5.1",
+ "symfony/console": "^3.4|^4.0",
+ "symfony/form": "^3.4|^4.0",
+ "symfony/http-kernel": "^3.4|^4.0",
+ "symfony/phpunit-bridge": "^3.4|^4.0",
+ "symfony/security-core": "^3.4|^4.0",
+ "symfony/validator": "^3.4|^4.0",
+ "symfony/var-dumper": "^3.4|^4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "MsgPhp\\User\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Roland Franssen",
+ "email": "franssen.roland@gmail.com"
+ }
+ ],
+ "description": "User domain layer",
+ "keywords": [
+ "security",
+ "user"
+ ],
+ "time": "2018-03-11T14:57:33+00:00"
+ },
+ {
+ "name": "msgphp/user-bundle",
+ "version": "v0.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/msgphp/user-bundle.git",
+ "reference": "18e589e5d1f0cdb2dc1917688a5555e37b637551"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/msgphp/user-bundle/zipball/18e589e5d1f0cdb2dc1917688a5555e37b637551",
+ "reference": "18e589e5d1f0cdb2dc1917688a5555e37b637551",
+ "shasum": ""
+ },
+ "require": {
+ "msgphp/user": "^0.2|^1.0",
+ "symfony/config": "^3.4|^4.0",
+ "symfony/dependency-injection": "^3.4|^4.0",
+ "symfony/http-kernel": "^3.4|^4.0"
+ },
+ "require-dev": {
+ "doctrine/doctrine-bundle": "^1.8",
+ "doctrine/orm": "^2.6",
+ "simple-bus/symfony-bridge": "^5.1",
+ "symfony/console": "^3.4|^4.0",
+ "symfony/form": "^3.4|^4.0",
+ "symfony/phpunit-bridge": "^3.4|^4.0",
+ "symfony/security-bundle": "^3.4|^4.0",
+ "symfony/twig-bundle": "^3.4|^4.0",
+ "symfony/validator": "^3.4|^4.0",
+ "symfony/var-dumper": "^3.4|^4.0"
+ },
+ "suggest": {
+ "msgphp/eav-bundle": "To enable user attribute values"
+ },
+ "type": "symfony-bundle",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "MsgPhp\\UserBundle\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Roland Franssen",
+ "email": "franssen.roland@gmail.com"
+ }
+ ],
+ "description": "User domain layer",
+ "keywords": [
+ "security",
+ "user"
+ ],
+ "time": "2018-03-11T14:57:33+00:00"
+ },
{
"name": "ocramius/package-versions",
"version": "1.2.0",
diff --git a/config/bundles.php b/config/bundles.php
index c3f2ec2d..21149169 100644
--- a/config/bundles.php
+++ b/config/bundles.php
@@ -14,4 +14,5 @@ return [
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
+ MsgPhp\UserBundle\MsgPhpUserBundle::class => ['all' => true],
];
diff --git a/config/packages/msgphp_user.php b/config/packages/msgphp_user.php
new file mode 100644
index 00000000..e1f3f0bc
--- /dev/null
+++ b/config/packages/msgphp_user.php
@@ -0,0 +1,12 @@
+extension('msgphp_user', [
+ 'class_mapping' => [
+ User::class => \App\Entity\User\User::class,
+ ],
+ ]);
+};
diff --git a/src/Entity/User/User.php b/src/Entity/User/User.php
new file mode 100644
index 00000000..06152758
--- /dev/null
+++ b/src/Entity/User/User.php
@@ -0,0 +1,24 @@
+id = $id;
+ }
+
+ public function getId(): UserIdInterface
+ {
+ return $this->id;
+ }
+}
diff --git a/symfony.lock b/symfony.lock
index a0b8a8ed..34e3bda2 100644
--- a/symfony.lock
+++ b/symfony.lock
@@ -92,6 +92,21 @@
"monolog/monolog": {
"version": "1.23.0"
},
+ "msgphp/domain": {
+ "version": "v0.2.2"
+ },
+ "msgphp/user": {
+ "version": "v0.2.2"
+ },
+ "msgphp/user-bundle": {
+ "version": "0.2",
+ "recipe": {
+ "repo": "github.com/symfony/recipes-contrib",
+ "branch": "master",
+ "version": "0.2",
+ "ref": "467ccfceb0143c35ed852ccd8f1d03effb73afc4"
+ }
+ },
"ocramius/proxy-manager": {
"version": "2.0.4"
},