diff --git a/api/composer.json b/api/composer.json index cd564da..a94310f 100644 --- a/api/composer.json +++ b/api/composer.json @@ -4,12 +4,23 @@ "require": { "php": "^7.1.3", "ext-iconv": "*", - "api-platform/api-pack": "^1.1", + "api-platform/core": "dev-master", + "doctrine/annotations": "^1.0", + "doctrine/doctrine-bundle": "^1.6", + "doctrine/doctrine-fixtures-bundle": "^3.0", + "doctrine/orm": "^2.4.5", "guzzlehttp/guzzle": "^6.3", + "nelmio/cors-bundle": "^1.5", + "phpdocumentor/reflection-docblock": "^3.0 || ^4.0", + "symfony/asset": "^3.0 || ^4.0", "symfony/console": "^4.0", + "symfony/expression-language": "^3.0 || ^4.0", "symfony/flex": "^1.0", "symfony/framework-bundle": "^4.0", "symfony/lts": "^4@dev", + "symfony/security-bundle": "^3.0 || ^4.0", + "symfony/twig-bundle": "^3.0 || ^4.0", + "symfony/validator": "^3.0 || ^4.0", "symfony/yaml": "^4.0" }, "require-dev": { @@ -54,7 +65,7 @@ }, "extra": { "symfony": { - "id": "", + "id": "01CAQYA1ZX5170QKSDB3JM7Z9M", "allow-contrib": false } } diff --git a/api/composer.lock b/api/composer.lock index 7e288ca..593bbe1 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -4,56 +4,20 @@ "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": "65dc82b63f66cd763ec6c03b17d144c9", + "content-hash": "aafd8ec714a4b9d559df8a5b46eee123", "packages": [ - { - "name": "api-platform/api-pack", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/api-platform/api-pack.git", - "reference": "33ade8a1dc23868828788fe1bf3e54291ce54843" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/api-platform/api-pack/zipball/33ade8a1dc23868828788fe1bf3e54291ce54843", - "reference": "33ade8a1dc23868828788fe1bf3e54291ce54843", - "shasum": "" - }, - "require": { - "api-platform/core": "^2.1", - "doctrine/annotations": "^1.0", - "doctrine/doctrine-bundle": "^1.6", - "doctrine/orm": "^2.4.5", - "nelmio/cors-bundle": "^1.5", - "php": "^7.0", - "phpdocumentor/reflection-docblock": "^3.0 || ^4.0", - "symfony/asset": "^3.0 || ^4.0", - "symfony/expression-language": "^3.0 || ^4.0", - "symfony/security-bundle": "^3.0 || ^4.0", - "symfony/twig-bundle": "^3.0 || ^4.0", - "symfony/validator": "^3.0 || ^4.0" - }, - "type": "symfony-pack", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A pack for API Platform", - "time": "2018-02-09T13:21:13+00:00" - }, { "name": "api-platform/core", - "version": "v2.2.5", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/api-platform/core.git", - "reference": "d21403eda880a9431da96f45bd77e8a7a7b400c4" + "reference": "c550dbe64788eca1617767b51d0d32b5df81543d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/api-platform/core/zipball/d21403eda880a9431da96f45bd77e8a7a7b400c4", - "reference": "d21403eda880a9431da96f45bd77e8a7a7b400c4", + "url": "https://api.github.com/repos/api-platform/core/zipball/c550dbe64788eca1617767b51d0d32b5df81543d", + "reference": "c550dbe64788eca1617767b51d0d32b5df81543d", "shasum": "" }, "require": { @@ -69,7 +33,7 @@ "willdurand/negotiation": "^2.0.3" }, "conflict": { - "symfony/dependency-injection": "<3.3" + "symfony/dependency-injection": "<3.4" }, "require-dev": { "behat/behat": "^3.1", @@ -79,9 +43,9 @@ "behat/symfony2-extension": "^2.1.1", "behatch/contexts": "^3.0@dev", "doctrine/annotations": "^1.2", - "doctrine/doctrine-bundle": "^1.6.3", + "doctrine/doctrine-bundle": "^1.8", "doctrine/orm": "^2.5.2", - "friendsofsymfony/user-bundle": "^2.0", + "friendsofsymfony/user-bundle": "^2.1", "guzzlehttp/guzzle": "^6.0", "justinrainbow/json-schema": "^5.0", "nelmio/api-doc-bundle": "^2.13.3", @@ -90,15 +54,17 @@ "phpdocumentor/type-resolver": "^0.2.1 || ^0.3 || 0.4", "phpunit/phpunit": "^6.1", "psr/log": "^1.0", + "ramsey/uuid": "^3.7", + "ramsey/uuid-doctrine": "^1.4", "sensio/framework-extra-bundle": "^3.0.11 || ^4.0", "symfony/asset": "^3.3 || ^4.0", "symfony/cache": "^3.3 || ^4.0", - "symfony/config": "^3.3 || ^4.0", - "symfony/console": "^3.3 || ^4.0", + "symfony/config": "^3.4 || ^4.0", + "symfony/console": "^3.4 || ^4.0", "symfony/debug": "^2.8 || ^3.0 || ^4.0", - "symfony/dependency-injection": "^3.3 || ^4.0", + "symfony/dependency-injection": "^3.4 || ^4.0", "symfony/doctrine-bridge": "^2.8.12 || ^3.0 || ^4.0", - "symfony/event-dispatcher": "^3.3 || ^4.0", + "symfony/event-dispatcher": "^3.4 || ^4.0", "symfony/expression-language": "^2.8 || ^3.0 || ^4.0", "symfony/finder": "^3.3 || ^4.0", "symfony/form": "^3.3 || ^4.0", @@ -106,9 +72,10 @@ "symfony/phpunit-bridge": "^3.3 || ^4.0", "symfony/routing": "^3.3 || ^4.0", "symfony/security": "^3.0 || ^4.0", - "symfony/security-bundle": "^3.0 || ^4.0", - "symfony/twig-bundle": "^3.1 || ^4.0", + "symfony/security-bundle": "^3.4 || ^4.0", + "symfony/twig-bundle": "^3.4 || ^4.0", "symfony/validator": "^3.3 || ^4.0", + "symfony/web-profiler-bundle": "^3.3 || ^4.0", "symfony/yaml": "^3.3 || ^4.0", "webonyx/graphql-php": "^0.10.2" }, @@ -117,17 +84,19 @@ "guzzlehttp/guzzle": "To use the HTTP cache invalidation system.", "phpdocumentor/reflection-docblock": "To support extracting metadata from PHPDoc.", "psr/cache-implementation": "To use metadata caching.", + "ramsey/uuid": "To support Ramsey's UUID identifiers.", "symfony/cache": "To have metadata caching when using Symfony integration.", "symfony/config": "To load XML configuration files.", "symfony/expression-language": "To use authorization features.", "symfony/security": "To use authorization features.", "symfony/twig-bundle": "To use the Swagger UI integration.", + "symfony/web-profiler-bundle": "To use the data collector.", "webonyx/graphql-php": "To support GraphQL." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2.x-dev" + "dev-master": "2.3.x-dev" } }, "autoload": { @@ -157,7 +126,7 @@ "rest", "swagger" ], - "time": "2018-04-03T15:42:30+00:00" + "time": "2018-04-10T09:04:59+00:00" }, { "name": "doctrine/annotations", @@ -441,18 +410,75 @@ ], "time": "2017-08-31T08:43:38+00:00" }, + { + "name": "doctrine/data-fixtures", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/data-fixtures.git", + "reference": "7b76ccc8e648c4502aad7f61347326c8a072bd3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/data-fixtures/zipball/7b76ccc8e648c4502aad7f61347326c8a072bd3b", + "reference": "7b76ccc8e648c4502aad7f61347326c8a072bd3b", + "shasum": "" + }, + "require": { + "doctrine/common": "~2.2", + "php": "^7.1" + }, + "require-dev": { + "doctrine/dbal": "^2.5.4", + "doctrine/orm": "^2.5.4", + "phpunit/phpunit": "^6.3" + }, + "suggest": { + "alcaeus/mongo-php-adapter": "For using MongoDB ODM with PHP 7", + "doctrine/mongodb-odm": "For loading MongoDB ODM fixtures", + "doctrine/orm": "For loading ORM fixtures", + "doctrine/phpcr-odm": "For loading PHPCR ODM fixtures" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\DataFixtures\\": "lib/Doctrine/Common/DataFixtures" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Data Fixtures for all Doctrine Object Managers", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "database" + ], + "time": "2017-11-27T18:48:06+00:00" + }, { "name": "doctrine/dbal", - "version": "v2.6.3", + "version": "v2.7.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13" + "reference": "11037b4352c008373561dc6fc836834eed80c3b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/e3eed9b1facbb0ced3a0995244843a189e7d1b13", - "reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/11037b4352c008373561dc6fc836834eed80c3b5", + "reference": "11037b4352c008373561dc6fc836834eed80c3b5", "shasum": "" }, "require": { @@ -461,9 +487,11 @@ "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^5.4.6", + "doctrine/coding-standard": "^4.0", + "phpunit/phpunit": "^7.0", "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", - "symfony/console": "2.*||^3.0" + "symfony/console": "^2.0.5||^3.0", + "symfony/phpunit-bridge": "^3.4.5|^4.0.5" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -474,7 +502,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.6.x-dev" + "dev-master": "2.7.x-dev" } }, "autoload": { @@ -512,7 +540,7 @@ "persistence", "queryobject" ], - "time": "2017-11-19T13:38:54+00:00" + "time": "2018-04-07T18:44:18+00:00" }, { "name": "doctrine/doctrine-bundle", @@ -687,6 +715,67 @@ ], "time": "2018-03-27T09:22:12+00:00" }, + { + "name": "doctrine/doctrine-fixtures-bundle", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/doctrine/DoctrineFixturesBundle.git", + "reference": "7fc29d2b18c61ed99826b21fbfd1ff9969cc2e7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/7fc29d2b18c61ed99826b21fbfd1ff9969cc2e7f", + "reference": "7fc29d2b18c61ed99826b21fbfd1ff9969cc2e7f", + "shasum": "" + }, + "require": { + "doctrine/data-fixtures": "~1.0", + "doctrine/doctrine-bundle": "~1.0", + "php": ">=5.5.9|^7.0", + "symfony/doctrine-bridge": "~2.7|~3.0|~4.0", + "symfony/framework-bundle": "^3.3|^4.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^3.3" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Bundle\\FixturesBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Doctrine Project", + "homepage": "http://www.doctrine-project.org" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony DoctrineFixturesBundle", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "Fixture", + "persistence" + ], + "time": "2017-12-04T20:26:38+00:00" + }, { "name": "doctrine/inflector", "version": "v1.3.0", @@ -1627,7 +1716,7 @@ }, { "name": "symfony/asset", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", @@ -1683,7 +1772,7 @@ }, { "name": "symfony/cache", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", @@ -1752,7 +1841,7 @@ }, { "name": "symfony/config", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/config.git", @@ -1814,7 +1903,7 @@ }, { "name": "symfony/console", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", @@ -1882,7 +1971,7 @@ }, { "name": "symfony/debug", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", @@ -1938,7 +2027,7 @@ }, { "name": "symfony/dependency-injection", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", @@ -2009,7 +2098,7 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", @@ -2088,16 +2177,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "85eaf6a8ec915487abac52e133efc4a268204428" + "reference": "63353a71073faf08f62caab4e6889b06a787f07b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/85eaf6a8ec915487abac52e133efc4a268204428", - "reference": "85eaf6a8ec915487abac52e133efc4a268204428", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/63353a71073faf08f62caab4e6889b06a787f07b", + "reference": "63353a71073faf08f62caab4e6889b06a787f07b", "shasum": "" }, "require": { @@ -2147,11 +2236,11 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2018-02-14T14:11:10+00:00" + "time": "2018-04-06T07:35:43+00:00" }, { "name": "symfony/expression-language", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", @@ -2201,7 +2290,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -2250,16 +2339,16 @@ }, { "name": "symfony/finder", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "c72995d9f5999b3fcdd8660c0c9690243252e1e1" + "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/c72995d9f5999b3fcdd8660c0c9690243252e1e1", - "reference": "c72995d9f5999b3fcdd8660c0c9690243252e1e1", + "url": "https://api.github.com/repos/symfony/finder/zipball/ca27c02b7a3fef4828c998c2ff9ba7aae1641c49", + "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49", "shasum": "" }, "require": { @@ -2295,7 +2384,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-04-02T09:52:41+00:00" + "time": "2018-04-04T05:10:37+00:00" }, { "name": "symfony/flex", @@ -2345,16 +2434,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "a8e73bb539054efdca59a4ec0d3af99635812505" + "reference": "3571d235434b566aea39d8f8bfe38860344fd9a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/a8e73bb539054efdca59a4ec0d3af99635812505", - "reference": "a8e73bb539054efdca59a4ec0d3af99635812505", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/3571d235434b566aea39d8f8bfe38860344fd9a3", + "reference": "3571d235434b566aea39d8f8bfe38860344fd9a3", "shasum": "" }, "require": { @@ -2455,11 +2544,11 @@ ], "description": "Symfony FrameworkBundle", "homepage": "https://symfony.com", - "time": "2018-04-02T09:52:41+00:00" + "time": "2018-04-04T18:24:59+00:00" }, { "name": "symfony/http-foundation", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", @@ -2512,16 +2601,16 @@ }, { "name": "symfony/http-kernel", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "38337d03a554a2b0e9f553d368723692b7c04a8f" + "reference": "6dd620d96d64456075536ffe3c6c4658dd689021" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/38337d03a554a2b0e9f553d368723692b7c04a8f", - "reference": "38337d03a554a2b0e9f553d368723692b7c04a8f", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6dd620d96d64456075536ffe3c6c4658dd689021", + "reference": "6dd620d96d64456075536ffe3c6c4658dd689021", "shasum": "" }, "require": { @@ -2594,11 +2683,11 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2018-04-03T06:20:33+00:00" + "time": "2018-04-06T16:25:03+00:00" }, { "name": "symfony/inflector", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", @@ -2807,7 +2896,7 @@ }, { "name": "symfony/property-access", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", @@ -2874,7 +2963,7 @@ }, { "name": "symfony/property-info", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", @@ -2950,16 +3039,16 @@ }, { "name": "symfony/routing", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "ca780c838046bfef4a6fd50284ae71a5d1f1a8b2" + "reference": "0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/ca780c838046bfef4a6fd50284ae71a5d1f1a8b2", - "reference": "ca780c838046bfef4a6fd50284ae71a5d1f1a8b2", + "url": "https://api.github.com/repos/symfony/routing/zipball/0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71", + "reference": "0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71", "shasum": "" }, "require": { @@ -3024,20 +3113,20 @@ "uri", "url" ], - "time": "2018-04-02T09:52:41+00:00" + "time": "2018-04-04T13:50:32+00:00" }, { "name": "symfony/security", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/security.git", - "reference": "3e08200cc978c71d2cfdbc9500db4f2b65bdd28f" + "reference": "6c15e6b36dfa873c9798e41cac5937b61d0eb3fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security/zipball/3e08200cc978c71d2cfdbc9500db4f2b65bdd28f", - "reference": "3e08200cc978c71d2cfdbc9500db4f2b65bdd28f", + "url": "https://api.github.com/repos/symfony/security/zipball/6c15e6b36dfa873c9798e41cac5937b61d0eb3fe", + "reference": "6c15e6b36dfa873c9798e41cac5937b61d0eb3fe", "shasum": "" }, "require": { @@ -3101,20 +3190,20 @@ ], "description": "Symfony Security Component", "homepage": "https://symfony.com", - "time": "2018-04-02T14:35:51+00:00" + "time": "2018-04-06T07:35:43+00:00" }, { "name": "symfony/security-bundle", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/security-bundle.git", - "reference": "4edcb55716cdbbb26783313f34046ada778c87c5" + "reference": "dfabecc1fd3e626e676edef97753a645b4de85a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-bundle/zipball/4edcb55716cdbbb26783313f34046ada778c87c5", - "reference": "4edcb55716cdbbb26783313f34046ada778c87c5", + "url": "https://api.github.com/repos/symfony/security-bundle/zipball/dfabecc1fd3e626e676edef97753a645b4de85a5", + "reference": "dfabecc1fd3e626e676edef97753a645b4de85a5", "shasum": "" }, "require": { @@ -3181,11 +3270,11 @@ ], "description": "Symfony SecurityBundle", "homepage": "https://symfony.com", - "time": "2018-03-19T22:35:49+00:00" + "time": "2018-04-06T07:35:43+00:00" }, { "name": "symfony/serializer", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", @@ -3263,7 +3352,7 @@ }, { "name": "symfony/translation", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -3331,7 +3420,7 @@ }, { "name": "symfony/twig-bridge", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", @@ -3421,7 +3510,7 @@ }, { "name": "symfony/twig-bundle", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", @@ -3494,16 +3583,16 @@ }, { "name": "symfony/validator", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "2f080fe8af133d12bdf3eeb55a9d01e1286f8e24" + "reference": "b9546d78133d6af199ac6625d0d587a2d804f967" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/2f080fe8af133d12bdf3eeb55a9d01e1286f8e24", - "reference": "2f080fe8af133d12bdf3eeb55a9d01e1286f8e24", + "url": "https://api.github.com/repos/symfony/validator/zipball/b9546d78133d6af199ac6625d0d587a2d804f967", + "reference": "b9546d78133d6af199ac6625d0d587a2d804f967", "shasum": "" }, "require": { @@ -3574,11 +3663,11 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2018-04-02T09:52:41+00:00" + "time": "2018-04-06T07:35:43+00:00" }, { "name": "symfony/yaml", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", @@ -4207,7 +4296,7 @@ }, { "name": "symfony/options-resolver", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -4316,7 +4405,7 @@ }, { "name": "symfony/process", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/process.git", @@ -4365,7 +4454,7 @@ }, { "name": "symfony/stopwatch", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -4416,6 +4505,7 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { + "api-platform/core": 20, "symfony/lts": 20 }, "prefer-stable": false, diff --git a/api/config/bundles.php b/api/config/bundles.php index 34f3d47..2e84e06 100644 --- a/api/config/bundles.php +++ b/api/config/bundles.php @@ -8,4 +8,5 @@ Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true], Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true], + Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], ]; diff --git a/api/src/DataFixtures/AppFixtures.php b/api/src/DataFixtures/AppFixtures.php new file mode 100644 index 0000000..3d17243 --- /dev/null +++ b/api/src/DataFixtures/AppFixtures.php @@ -0,0 +1,35 @@ +name = 'hello '.$i; + $manager->persist($hello); + + $greet = new Greeting(); + $greet->name = 'greeting '.$i; + $manager->persist($greet); + + $gerard = new Gerard(); + $gerard->hellos->add($hello); + $gerard->greetings->add($greet); + $manager->persist($gerard); + + } + + $manager->flush(); + } +} \ No newline at end of file diff --git a/api/src/Entity/Gerard.php b/api/src/Entity/Gerard.php new file mode 100644 index 0000000..ecc3c81 --- /dev/null +++ b/api/src/Entity/Gerard.php @@ -0,0 +1,63 @@ +greetings = new ArrayCollection(); + $this->hellos = new ArrayCollection(); + } + + public function getId(): int + { + return $this->id; + } +} diff --git a/api/src/Entity/Greeting.php b/api/src/Entity/Greeting.php index cdfd3e9..b7b2399 100644 --- a/api/src/Entity/Greeting.php +++ b/api/src/Entity/Greeting.php @@ -10,6 +10,7 @@ * This is a dummy entity. Remove it! * * @ApiResource + * * @ORM\Entity */ class Greeting diff --git a/api/src/Entity/Hello.php b/api/src/Entity/Hello.php new file mode 100644 index 0000000..45f38c0 --- /dev/null +++ b/api/src/Entity/Hello.php @@ -0,0 +1,39 @@ +id; + } +} diff --git a/api/symfony.lock b/api/symfony.lock index e2166e6..6c32ef7 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -35,6 +35,9 @@ "doctrine/common": { "version": "v2.8.1" }, + "doctrine/data-fixtures": { + "version": "v1.3.0" + }, "doctrine/dbal": { "version": "v2.6.3" }, @@ -50,6 +53,15 @@ "doctrine/doctrine-cache-bundle": { "version": "1.3.2" }, + "doctrine/doctrine-fixtures-bundle": { + "version": "3.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.0", + "ref": "2ea6070ecf365f9a801ccaed4b31d4a3b7af5693" + } + }, "doctrine/inflector": { "version": "v1.3.0" },