From a82aef117bfcd06edf1493db0a61a23a90134427 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Thu, 22 Mar 2018 14:50:57 +0100 Subject: [PATCH] setup user bundle --- .env.dist | 0 .gitignore | 0 assets/.gitignore | 0 assets/css/global.scss | 0 assets/js/app.js | 0 composer.json | 0 composer.lock | 190 ++++++++++++++++++- config/bundles.php | 1 + config/packages/dev/easy_log_handler.yaml | 0 config/packages/dev/monolog.yaml | 0 config/packages/dev/routing.yaml | 0 config/packages/dev/security_checker.yaml | 0 config/packages/dev/swiftmailer.yaml | 0 config/packages/dev/web_profiler.yaml | 0 config/packages/doctrine.yaml | 2 + config/packages/doctrine_migrations.yaml | 0 config/packages/fos_rest.yaml | 0 config/packages/framework.yaml | 0 config/packages/msgphp_user.php | 13 ++ config/packages/prod/doctrine.yaml | 0 config/packages/prod/monolog.yaml | 0 config/packages/routing.yaml | 0 config/packages/security.yaml | 0 config/packages/swiftmailer.yaml | 0 config/packages/test/framework.yaml | 0 config/packages/test/monolog.yaml | 0 config/packages/test/swiftmailer.yaml | 0 config/packages/test/web_profiler.yaml | 0 config/packages/translation.yaml | 0 config/packages/twig.yaml | 0 config/routes.yaml | 0 config/routes/annotations.yaml | 0 config/routes/dev/twig.yaml | 0 config/routes/dev/web_profiler.yaml | 0 config/services.yaml | 0 config/services_test.yaml | 0 package-lock.json | 0 package.json | 0 phpunit.xml.dist | 0 public/index.php | 0 src/Controller/.gitignore | 0 src/Controller/ProductController.php | 0 src/DataFixtures/.gitignore | 0 src/Entity/.gitignore | 0 src/Entity/Product.php | 0 src/Entity/ProductCategory.php | 0 src/Entity/SellRecord.php | 0 src/Entity/User/User.php | 24 +++ src/Kernel.php | 0 src/Migrations/.gitignore | 0 src/Migrations/Version20180315151516.php | 0 src/Repository/.gitignore | 0 src/Repository/ProductCategoryRepository.php | 0 src/Repository/ProductRepository.php | 0 src/Repository/SellRecordRepository.php | 0 symfony.lock | 15 ++ templates/base.html.twig | 0 templates/pdf/content.html.twig | 0 templates/pdf/footer.html.twig | 0 templates/pdf/header.html.twig | 0 templates/pdf/table-of-contents.xml.twig | 0 templates/product/index.html.twig | 0 templates/product/test.html.twig | 0 tests/.gitignore | 0 translations/.gitignore | 0 webpack.config.js | 0 yarn.lock | 0 67 files changed, 244 insertions(+), 1 deletion(-) mode change 100644 => 100755 .env.dist mode change 100644 => 100755 .gitignore mode change 100644 => 100755 assets/.gitignore mode change 100644 => 100755 assets/css/global.scss mode change 100644 => 100755 assets/js/app.js mode change 100644 => 100755 composer.json mode change 100644 => 100755 composer.lock mode change 100644 => 100755 config/bundles.php mode change 100644 => 100755 config/packages/dev/easy_log_handler.yaml mode change 100644 => 100755 config/packages/dev/monolog.yaml mode change 100644 => 100755 config/packages/dev/routing.yaml mode change 100644 => 100755 config/packages/dev/security_checker.yaml mode change 100644 => 100755 config/packages/dev/swiftmailer.yaml mode change 100644 => 100755 config/packages/dev/web_profiler.yaml mode change 100644 => 100755 config/packages/doctrine.yaml mode change 100644 => 100755 config/packages/doctrine_migrations.yaml mode change 100644 => 100755 config/packages/fos_rest.yaml mode change 100644 => 100755 config/packages/framework.yaml create mode 100755 config/packages/msgphp_user.php mode change 100644 => 100755 config/packages/prod/doctrine.yaml mode change 100644 => 100755 config/packages/prod/monolog.yaml mode change 100644 => 100755 config/packages/routing.yaml mode change 100644 => 100755 config/packages/security.yaml mode change 100644 => 100755 config/packages/swiftmailer.yaml mode change 100644 => 100755 config/packages/test/framework.yaml mode change 100644 => 100755 config/packages/test/monolog.yaml mode change 100644 => 100755 config/packages/test/swiftmailer.yaml mode change 100644 => 100755 config/packages/test/web_profiler.yaml mode change 100644 => 100755 config/packages/translation.yaml mode change 100644 => 100755 config/packages/twig.yaml mode change 100644 => 100755 config/routes.yaml mode change 100644 => 100755 config/routes/annotations.yaml mode change 100644 => 100755 config/routes/dev/twig.yaml mode change 100644 => 100755 config/routes/dev/web_profiler.yaml mode change 100644 => 100755 config/services.yaml mode change 100644 => 100755 config/services_test.yaml mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 phpunit.xml.dist mode change 100644 => 100755 public/index.php mode change 100644 => 100755 src/Controller/.gitignore mode change 100644 => 100755 src/Controller/ProductController.php mode change 100644 => 100755 src/DataFixtures/.gitignore mode change 100644 => 100755 src/Entity/.gitignore mode change 100644 => 100755 src/Entity/Product.php mode change 100644 => 100755 src/Entity/ProductCategory.php mode change 100644 => 100755 src/Entity/SellRecord.php create mode 100755 src/Entity/User/User.php mode change 100644 => 100755 src/Kernel.php mode change 100644 => 100755 src/Migrations/.gitignore mode change 100644 => 100755 src/Migrations/Version20180315151516.php mode change 100644 => 100755 src/Repository/.gitignore mode change 100644 => 100755 src/Repository/ProductCategoryRepository.php mode change 100644 => 100755 src/Repository/ProductRepository.php mode change 100644 => 100755 src/Repository/SellRecordRepository.php mode change 100644 => 100755 symfony.lock mode change 100644 => 100755 templates/base.html.twig mode change 100644 => 100755 templates/pdf/content.html.twig mode change 100644 => 100755 templates/pdf/footer.html.twig mode change 100644 => 100755 templates/pdf/header.html.twig mode change 100644 => 100755 templates/pdf/table-of-contents.xml.twig mode change 100644 => 100755 templates/product/index.html.twig mode change 100644 => 100755 templates/product/test.html.twig mode change 100644 => 100755 tests/.gitignore mode change 100644 => 100755 translations/.gitignore mode change 100644 => 100755 webpack.config.js mode change 100644 => 100755 yarn.lock diff --git a/.env.dist b/.env.dist old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/assets/.gitignore b/assets/.gitignore old mode 100644 new mode 100755 diff --git a/assets/css/global.scss b/assets/css/global.scss old mode 100644 new mode 100755 diff --git a/assets/js/app.js b/assets/js/app.js old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 index 6816cba8..e1f06664 --- 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": "67a565f8e92ab38b2b832b9520f2f951", + "content-hash": "323cd6f79b79f99a5919e9e4c395a45d", "packages": [ { "name": "composer/ca-bundle", @@ -1361,6 +1361,128 @@ ], "time": "2017-06-19T01:22:40+00:00" }, + { + "name": "msgphp/domain", + "version": "v0.2.3", + "source": { + "type": "git", + "url": "https://github.com/msgphp/domain.git", + "reference": "3c431766cfb8769dc8bc8bed9fa561387a2963be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/msgphp/domain/zipball/3c431766cfb8769dc8bc8bed9fa561387a2963be", + "reference": "3c431766cfb8769dc8bc8bed9fa561387a2963be", + "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-14T20:58:45+00:00" + }, + { + "name": "msgphp/user", + "version": "v0.2.3", + "source": { + "type": "git", + "url": "https://github.com/msgphp/user.git", + "reference": "57715720a6c2d20c51e5428b6bcdabc9583f4d8e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/msgphp/user/zipball/57715720a6c2d20c51e5428b6bcdabc9583f4d8e", + "reference": "57715720a6c2d20c51e5428b6bcdabc9583f4d8e", + "shasum": "" + }, + "require": { + "msgphp/domain": "^0.2|^1.0" + }, + "require-dev": { + "doctrine/orm": "^2.6", + "lexik/jwt-authentication-bundle": "dev-master", + "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-17T14:16:53+00:00" + }, { "name": "ocramius/package-versions", "version": "1.2.0", @@ -5756,6 +5878,72 @@ ], "time": "2017-12-04T20:26:38+00:00" }, + { + "name": "msgphp/user-bundle", + "version": "v0.2.3", + "source": { + "type": "git", + "url": "https://github.com/msgphp/user-bundle.git", + "reference": "0600cd6e40fd2e48263b2f63a6542dd2adf0fb5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/msgphp/user-bundle/zipball/0600cd6e40fd2e48263b2f63a6542dd2adf0fb5b", + "reference": "0600cd6e40fd2e48263b2f63a6542dd2adf0fb5b", + "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-17T14:03:02+00:00" + }, { "name": "symfony/browser-kit", "version": "v3.4.6", diff --git a/config/bundles.php b/config/bundles.php old mode 100644 new mode 100755 index 02492390..dd2912de --- a/config/bundles.php +++ b/config/bundles.php @@ -16,4 +16,5 @@ return [ Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], FOS\RestBundle\FOSRestBundle::class => ['all' => true], Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle::class => ['all' => true], + MsgPhp\UserBundle\MsgPhpUserBundle::class => ['all' => true], ]; diff --git a/config/packages/dev/easy_log_handler.yaml b/config/packages/dev/easy_log_handler.yaml old mode 100644 new mode 100755 diff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yaml old mode 100644 new mode 100755 diff --git a/config/packages/dev/routing.yaml b/config/packages/dev/routing.yaml old mode 100644 new mode 100755 diff --git a/config/packages/dev/security_checker.yaml b/config/packages/dev/security_checker.yaml old mode 100644 new mode 100755 diff --git a/config/packages/dev/swiftmailer.yaml b/config/packages/dev/swiftmailer.yaml old mode 100644 new mode 100755 diff --git a/config/packages/dev/web_profiler.yaml b/config/packages/dev/web_profiler.yaml old mode 100644 new mode 100755 diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml old mode 100644 new mode 100755 index ee77d618..502ef6fa --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -18,6 +18,8 @@ doctrine: auto_generate_proxy_classes: '%kernel.debug%' naming_strategy: doctrine.orm.naming_strategy.underscore auto_mapping: true + resolve_target_entities: + MsgPhp\User\Entity\Username: "truc" mappings: App: is_bundle: false diff --git a/config/packages/doctrine_migrations.yaml b/config/packages/doctrine_migrations.yaml old mode 100644 new mode 100755 diff --git a/config/packages/fos_rest.yaml b/config/packages/fos_rest.yaml old mode 100644 new mode 100755 diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml old mode 100644 new mode 100755 diff --git a/config/packages/msgphp_user.php b/config/packages/msgphp_user.php new file mode 100755 index 00000000..d06ccf97 --- /dev/null +++ b/config/packages/msgphp_user.php @@ -0,0 +1,13 @@ +extension( 'msgphp_user', + [ + 'class_mapping' => [ + User::class => \App\Entity\User\User::class, + ], + ] ); +}; diff --git a/config/packages/prod/doctrine.yaml b/config/packages/prod/doctrine.yaml old mode 100644 new mode 100755 diff --git a/config/packages/prod/monolog.yaml b/config/packages/prod/monolog.yaml old mode 100644 new mode 100755 diff --git a/config/packages/routing.yaml b/config/packages/routing.yaml old mode 100644 new mode 100755 diff --git a/config/packages/security.yaml b/config/packages/security.yaml old mode 100644 new mode 100755 diff --git a/config/packages/swiftmailer.yaml b/config/packages/swiftmailer.yaml old mode 100644 new mode 100755 diff --git a/config/packages/test/framework.yaml b/config/packages/test/framework.yaml old mode 100644 new mode 100755 diff --git a/config/packages/test/monolog.yaml b/config/packages/test/monolog.yaml old mode 100644 new mode 100755 diff --git a/config/packages/test/swiftmailer.yaml b/config/packages/test/swiftmailer.yaml old mode 100644 new mode 100755 diff --git a/config/packages/test/web_profiler.yaml b/config/packages/test/web_profiler.yaml old mode 100644 new mode 100755 diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml old mode 100644 new mode 100755 diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml old mode 100644 new mode 100755 diff --git a/config/routes.yaml b/config/routes.yaml old mode 100644 new mode 100755 diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml old mode 100644 new mode 100755 diff --git a/config/routes/dev/twig.yaml b/config/routes/dev/twig.yaml old mode 100644 new mode 100755 diff --git a/config/routes/dev/web_profiler.yaml b/config/routes/dev/web_profiler.yaml old mode 100644 new mode 100755 diff --git a/config/services.yaml b/config/services.yaml old mode 100644 new mode 100755 diff --git a/config/services_test.yaml b/config/services_test.yaml old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/phpunit.xml.dist b/phpunit.xml.dist old mode 100644 new mode 100755 diff --git a/public/index.php b/public/index.php old mode 100644 new mode 100755 diff --git a/src/Controller/.gitignore b/src/Controller/.gitignore old mode 100644 new mode 100755 diff --git a/src/Controller/ProductController.php b/src/Controller/ProductController.php old mode 100644 new mode 100755 diff --git a/src/DataFixtures/.gitignore b/src/DataFixtures/.gitignore old mode 100644 new mode 100755 diff --git a/src/Entity/.gitignore b/src/Entity/.gitignore old mode 100644 new mode 100755 diff --git a/src/Entity/Product.php b/src/Entity/Product.php old mode 100644 new mode 100755 diff --git a/src/Entity/ProductCategory.php b/src/Entity/ProductCategory.php old mode 100644 new mode 100755 diff --git a/src/Entity/SellRecord.php b/src/Entity/SellRecord.php old mode 100644 new mode 100755 diff --git a/src/Entity/User/User.php b/src/Entity/User/User.php new file mode 100755 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/src/Kernel.php b/src/Kernel.php old mode 100644 new mode 100755 diff --git a/src/Migrations/.gitignore b/src/Migrations/.gitignore old mode 100644 new mode 100755 diff --git a/src/Migrations/Version20180315151516.php b/src/Migrations/Version20180315151516.php old mode 100644 new mode 100755 diff --git a/src/Repository/.gitignore b/src/Repository/.gitignore old mode 100644 new mode 100755 diff --git a/src/Repository/ProductCategoryRepository.php b/src/Repository/ProductCategoryRepository.php old mode 100644 new mode 100755 diff --git a/src/Repository/ProductRepository.php b/src/Repository/ProductRepository.php old mode 100644 new mode 100755 diff --git a/src/Repository/SellRecordRepository.php b/src/Repository/SellRecordRepository.php old mode 100644 new mode 100755 diff --git a/symfony.lock b/symfony.lock old mode 100644 new mode 100755 index 9d4e669e..f83b5325 --- a/symfony.lock +++ b/symfony.lock @@ -101,6 +101,21 @@ "monolog/monolog": { "version": "1.23.0" }, + "msgphp/domain": { + "version": "v0.2.3" + }, + "msgphp/user": { + "version": "v0.2.3" + }, + "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" }, diff --git a/templates/base.html.twig b/templates/base.html.twig old mode 100644 new mode 100755 diff --git a/templates/pdf/content.html.twig b/templates/pdf/content.html.twig old mode 100644 new mode 100755 diff --git a/templates/pdf/footer.html.twig b/templates/pdf/footer.html.twig old mode 100644 new mode 100755 diff --git a/templates/pdf/header.html.twig b/templates/pdf/header.html.twig old mode 100644 new mode 100755 diff --git a/templates/pdf/table-of-contents.xml.twig b/templates/pdf/table-of-contents.xml.twig old mode 100644 new mode 100755 diff --git a/templates/product/index.html.twig b/templates/product/index.html.twig old mode 100644 new mode 100755 diff --git a/templates/product/test.html.twig b/templates/product/test.html.twig old mode 100644 new mode 100755 diff --git a/tests/.gitignore b/tests/.gitignore old mode 100644 new mode 100755 diff --git a/translations/.gitignore b/translations/.gitignore old mode 100644 new mode 100755 diff --git a/webpack.config.js b/webpack.config.js old mode 100644 new mode 100755 diff --git a/yarn.lock b/yarn.lock old mode 100644 new mode 100755