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