From fb6cf53785782470c945e18cfe1a63ca63e9d26b Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 20 Sep 2018 16:06:02 +0200 Subject: [PATCH] Installed fixture bundle --- application/composer.json | 1 + application/composer.lock | 123 +++++++++++++++++++++++- application/config/bundles.php | 1 + application/src/DataFixtures/.gitignore | 0 application/symfony.lock | 12 +++ 5 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 application/src/DataFixtures/.gitignore diff --git a/application/composer.json b/application/composer.json index f51bf22..ca85aca 100644 --- a/application/composer.json +++ b/application/composer.json @@ -32,6 +32,7 @@ "symfony/yaml": "*" }, "require-dev": { + "doctrine/doctrine-fixtures-bundle": "^3.0", "friendsofphp/php-cs-fixer": "^2.13", "phpunit/phpunit": "^7", "symfony/browser-kit": "*", diff --git a/application/composer.lock b/application/composer.lock index 1d4e069..872b3da 100644 --- a/application/composer.lock +++ b/application/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4f50eeff215d9530e0fec11e5033541e", + "content-hash": "8af877bd5a0e10991de84c91f1d98b44", "packages": [ { "name": "doctrine/annotations", @@ -5873,6 +5873,127 @@ ], "time": "2018-08-31T19:07:57+00:00" }, + { + "name": "doctrine/data-fixtures", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/data-fixtures.git", + "reference": "3a1e2c3c600e615a2dffe56d4ca0875cc5233e0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/data-fixtures/zipball/3a1e2c3c600e615a2dffe56d4ca0875cc5233e0a", + "reference": "3a1e2c3c600e615a2dffe56d4ca0875cc5233e0a", + "shasum": "" + }, + "require": { + "doctrine/common": "~2.2", + "php": "^7.1" + }, + "conflict": { + "doctrine/phpcr-odm": "<1.3.0" + }, + "require-dev": { + "doctrine/dbal": "^2.5.4", + "doctrine/orm": "^2.5.4", + "phpunit/phpunit": "^7.0" + }, + "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": "2018-03-20T09:06:36+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": "easycorp/easy-log-handler", "version": "v1.0.7", diff --git a/application/config/bundles.php b/application/config/bundles.php index 43ae49d..514e052 100644 --- a/application/config/bundles.php +++ b/application/config/bundles.php @@ -19,4 +19,5 @@ return [ FOS\RestBundle\FOSRestBundle::class => ['all' => true], JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true], SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle::class => ['all' => true], + Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], ]; diff --git a/application/src/DataFixtures/.gitignore b/application/src/DataFixtures/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/application/symfony.lock b/application/symfony.lock index 2c887fb..58b3e43 100644 --- a/application/symfony.lock +++ b/application/symfony.lock @@ -23,6 +23,9 @@ "doctrine/common": { "version": "v2.9.0" }, + "doctrine/data-fixtures": { + "version": "v1.3.1" + }, "doctrine/dbal": { "version": "v2.8.0" }, @@ -38,6 +41,15 @@ "doctrine/doctrine-cache-bundle": { "version": "1.3.3" }, + "doctrine/doctrine-fixtures-bundle": { + "version": "3.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.0", + "ref": "2ea6070ecf365f9a801ccaed4b31d4a3b7af5693" + } + }, "doctrine/doctrine-migrations-bundle": { "version": "1.2", "recipe": {