diff --git a/application/composer.json b/application/composer.json index aa6502b..f51bf22 100644 --- a/application/composer.json +++ b/application/composer.json @@ -11,6 +11,7 @@ "jms/serializer-bundle": "^2.4", "knplabs/knp-menu-bundle": "^2.0", "sensio/framework-extra-bundle": "^5.1", + "simplethings/entity-audit-bundle": "^1.0", "symfony/asset": "*", "symfony/console": "*", "symfony/expression-language": "*", diff --git a/application/composer.lock b/application/composer.lock index 609e8fb..1d4e069 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": "40ecc53c7d5df95c14346f7ae2faf283", + "content-hash": "4f50eeff215d9530e0fec11e5033541e", "packages": [ { "name": "doctrine/annotations", @@ -2713,6 +2713,58 @@ ], "time": "2018-05-12T09:37:42+00:00" }, + { + "name": "simplethings/entity-audit-bundle", + "version": "v1.0.9", + "source": { + "type": "git", + "url": "https://github.com/simplethings/EntityAuditBundle.git", + "reference": "5725ecab2d132288842d9a075d1a8662520829c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplethings/EntityAuditBundle/zipball/5725ecab2d132288842d9a075d1a8662520829c5", + "reference": "5725ecab2d132288842d9a075d1a8662520829c5", + "shasum": "" + }, + "require": { + "doctrine/dbal": "~2.5", + "doctrine/orm": "~2.4", + "php": "^5.3.9|~7.0" + }, + "conflict": { + "doctrine/dbal": "2.7.0", + "doctrine/doctrine-bundle": "<1.4", + "gedmo/doctrine-extensions": "<2.3.1", + "symfony/framework-bundle": "<2.7" + }, + "require-dev": { + "doctrine/doctrine-bundle": "~1.4", + "fabpot/php-cs-fixer": "^1.11", + "gedmo/doctrine-extensions": "^2.3.1", + "matthiasnoback/symfony-dependency-injection-test": "^1.0", + "phpunit/phpunit": "^4.8", + "symfony/framework-bundle": "~2.7|~3.0", + "symfony/var-dumper": "^2.7" + }, + "type": "symfony-bundle", + "autoload": { + "psr-4": { + "SimpleThings\\EntityAudit\\": "src/SimpleThings/EntityAudit" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "description": "Audit for Doctrine Entities", + "keywords": [ + "Audit", + "database", + "persistence" + ], + "time": "2018-04-10T08:14:31+00:00" + }, { "name": "swiftmailer/swiftmailer", "version": "v6.1.3", @@ -5871,6 +5923,66 @@ ], "time": "2018-07-27T15:41:37+00:00" }, + { + "name": "facebook/webdriver", + "version": "1.6.0", + "source": { + "type": "git", + "url": "https://github.com/facebook/php-webdriver.git", + "reference": "bd8c740097eb9f2fc3735250fc1912bc811a954e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facebook/php-webdriver/zipball/bd8c740097eb9f2fc3735250fc1912bc811a954e", + "reference": "bd8c740097eb9f2fc3735250fc1912bc811a954e", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "ext-zip": "*", + "php": "^5.6 || ~7.0", + "symfony/process": "^2.8 || ^3.1 || ^4.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "php-coveralls/php-coveralls": "^2.0", + "php-mock/php-mock-phpunit": "^1.1", + "phpunit/phpunit": "^5.7", + "sebastian/environment": "^1.3.4 || ^2.0 || ^3.0", + "squizlabs/php_codesniffer": "^2.6", + "symfony/var-dumper": "^3.3 || ^4.0" + }, + "suggest": { + "ext-SimpleXML": "For Firefox profile creation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-community": "1.5-dev" + } + }, + "autoload": { + "psr-4": { + "Facebook\\WebDriver\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "A PHP client for Selenium WebDriver", + "homepage": "https://github.com/facebook/php-webdriver", + "keywords": [ + "facebook", + "php", + "selenium", + "webdriver" + ], + "time": "2018-05-16T17:37:13+00:00" + }, { "name": "friendsofphp/php-cs-fixer", "version": "v2.13.0", @@ -6347,21 +6459,24 @@ }, { "name": "phpunit/php-file-iterator", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c" + "reference": "050bedf145a257b1ff02746c31894800e5122946" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cecbc684605bb0cc288828eb5d65d93d5c676d3c", - "reference": "cecbc684605bb0cc288828eb5d65d93d5c676d3c", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", + "reference": "050bedf145a257b1ff02746c31894800e5122946", "shasum": "" }, "require": { "php": "^7.1" }, + "require-dev": { + "phpunit/phpunit": "^7.1" + }, "type": "library", "extra": { "branch-alias": { @@ -6390,7 +6505,7 @@ "filesystem", "iterator" ], - "time": "2018-06-11T11:44:00+00:00" + "time": "2018-09-13T20:33:42+00:00" }, { "name": "phpunit/php-text-template", @@ -7563,6 +7678,72 @@ ], "time": "2018-08-30T01:08:06+00:00" }, + { + "name": "symfony/panther", + "version": "v0.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/panther.git", + "reference": "29cd7655c47acc0a398aba1558590b2e1cf41e34" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/panther/zipball/29cd7655c47acc0a398aba1558590b2e1cf41e34", + "reference": "29cd7655c47acc0a398aba1558590b2e1cf41e34", + "shasum": "" + }, + "require": { + "facebook/webdriver": "^1.5", + "php": ">=7.2", + "symfony/browser-kit": "^4.0", + "symfony/process": "^4.0" + }, + "conflict": { + "symfony/browser-kit": "4.1.0" + }, + "require-dev": { + "fabpot/goutte": "^3.2", + "phpunit/phpunit": "^7.0", + "symfony/framework-bundle": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Panther\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Kévin Dunglas", + "email": "dunglas@gmail.com", + "homepage": "https://dunglas.fr" + } + ], + "description": "A browser testing and web scrapping library for PHP and Symfony.", + "homepage": "https://dunglas.fr", + "keywords": [ + "e2e", + "scrapping", + "selenium", + "symfony", + "testing", + "webdriver" + ], + "time": "2018-07-17T07:25:58+00:00" + }, { "name": "symfony/phpunit-bridge", "version": "v4.1.4", @@ -7763,22 +7944,23 @@ }, { "name": "symfony/test-pack", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/symfony/test-pack.git", - "reference": "958d23627214f5268d211c25031650d0dd6bdf60" + "reference": "d09097e80a0166776e03fa145cc433c75ba2290b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/test-pack/zipball/958d23627214f5268d211c25031650d0dd6bdf60", - "reference": "958d23627214f5268d211c25031650d0dd6bdf60", + "url": "https://api.github.com/repos/symfony/test-pack/zipball/d09097e80a0166776e03fa145cc433c75ba2290b", + "reference": "d09097e80a0166776e03fa145cc433c75ba2290b", "shasum": "" }, "require": { "php": "^7.0", "symfony/browser-kit": "^3.3|^4.0", "symfony/css-selector": "^3.3|^4.0", + "symfony/panther": "^0.1", "symfony/phpunit-bridge": "*" }, "type": "symfony-pack", @@ -7786,8 +7968,8 @@ "license": [ "MIT" ], - "description": "A pack for functional testing within a Symfony app", - "time": "2018-04-30T06:17:59+00:00" + "description": "A pack for functional and end-to-end testing within a Symfony app", + "time": "2018-09-13T06:50:21+00:00" }, { "name": "symfony/var-dumper", diff --git a/application/config/bundles.php b/application/config/bundles.php index 0e12396..43ae49d 100644 --- a/application/config/bundles.php +++ b/application/config/bundles.php @@ -18,4 +18,5 @@ return [ FOS\UserBundle\FOSUserBundle::class => ['all' => true], FOS\RestBundle\FOSRestBundle::class => ['all' => true], JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true], + SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle::class => ['all' => true], ]; diff --git a/application/config/packages/simple_things_entity_audit.yml b/application/config/packages/simple_things_entity_audit.yml new file mode 100644 index 0000000..81a54e4 --- /dev/null +++ b/application/config/packages/simple_things_entity_audit.yml @@ -0,0 +1,5 @@ +simple_things_entity_audit: + audited_entities: + #- App\Entity\AbstractSource + - App\Entity\NameSource + - App\Entity\UserSource diff --git a/application/symfony.lock b/application/symfony.lock index a62c708..2c887fb 100644 --- a/application/symfony.lock +++ b/application/symfony.lock @@ -83,6 +83,9 @@ "egulias/email-validator": { "version": "2.1.5" }, + "facebook/webdriver": { + "version": "1.6.0" + }, "fig/link-util": { "version": "1.0.0" }, @@ -263,6 +266,9 @@ "ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b" } }, + "simplethings/entity-audit-bundle": { + "version": "v1.0.9" + }, "swiftmailer/swiftmailer": { "version": "v6.1.2" }, @@ -389,6 +395,9 @@ "symfony/orm-pack": { "version": "v1.0.5" }, + "symfony/panther": { + "version": "v0.1.0" + }, "symfony/phpunit-bridge": { "version": "4.1", "recipe": {