diff --git a/composer.json b/composer.json index d1bc4c0..d9bea30 100644 --- a/composer.json +++ b/composer.json @@ -1,69 +1,70 @@ { - "type": "project", - "license": "proprietary", - "require": { - "php": "^7.1.3", - "ext-ctype": "*", - "ext-iconv": "*", - "friendsofsymfony/rest-bundle": "^2.6", - "jms/serializer-bundle": "^3.4", - "symfony/console": "4.3.*", - "symfony/dotenv": "4.3.*", - "symfony/flex": "^1.3.1", - "symfony/form": "4.3.*", - "symfony/framework-bundle": "4.3.*", - "symfony/intl": "4.3.*", - "symfony/orm-pack": "^1.0", - "symfony/validator": "4.3.*", - "symfony/yaml": "4.3.*" + "type": "project", + "license": "proprietary", + "require": { + "php": "^7.1.3", + "ext-ctype": "*", + "ext-iconv": "*", + "friendsofsymfony/rest-bundle": "^2.6", + "jms/serializer-bundle": "^3.4", + "symfony/console": "4.3.*", + "symfony/dotenv": "4.3.*", + "symfony/flex": "^1.3.1", + "symfony/form": "4.3.*", + "symfony/framework-bundle": "4.3.*", + "symfony/intl": "4.3.*", + "symfony/orm-pack": "^1.0", + "symfony/validator": "4.3.*", + "symfony/yaml": "4.3.*" + }, + "require-dev": { + "doctrine/doctrine-fixtures-bundle": "^3.2", + "symfony/maker-bundle": "^1.14", + "symfony/web-server-bundle": "4.3.*" + }, + "config": { + "preferred-install": { + "*": "dist" }, - "require-dev": { - "symfony/maker-bundle": "^1.14", - "symfony/web-server-bundle": "4.3.*" - }, - "config": { - "preferred-install": { - "*": "dist" - }, - "sort-packages": true - }, - "autoload": { - "psr-4": { - "App\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "App\\Tests\\": "tests/" - } - }, - "replace": { - "paragonie/random_compat": "2.*", - "symfony/polyfill-ctype": "*", - "symfony/polyfill-iconv": "*", - "symfony/polyfill-php71": "*", - "symfony/polyfill-php70": "*", - "symfony/polyfill-php56": "*" - }, - "scripts": { - "auto-scripts": { - "cache:clear": "symfony-cmd", - "assets:install %PUBLIC_DIR%": "symfony-cmd" - }, - "post-install-cmd": [ - "@auto-scripts" - ], - "post-update-cmd": [ - "@auto-scripts" - ] - }, - "conflict": { - "symfony/symfony": "*" - }, - "extra": { - "symfony": { - "allow-contrib": false, - "require": "4.3.*" - } + "sort-packages": true + }, + "autoload": { + "psr-4": { + "App\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "App\\Tests\\": "tests/" + } + }, + "replace": { + "paragonie/random_compat": "2.*", + "symfony/polyfill-ctype": "*", + "symfony/polyfill-iconv": "*", + "symfony/polyfill-php71": "*", + "symfony/polyfill-php70": "*", + "symfony/polyfill-php56": "*" + }, + "scripts": { + "auto-scripts": { + "cache:clear": "symfony-cmd", + "assets:install %PUBLIC_DIR%": "symfony-cmd" + }, + "post-install-cmd": [ + "@auto-scripts" + ], + "post-update-cmd": [ + "@auto-scripts" + ] + }, + "conflict": { + "symfony/symfony": "*" + }, + "extra": { + "symfony": { + "allow-contrib": false, + "require": "4.3.*" + } + } } diff --git a/composer.lock b/composer.lock index 62c0ea8..9548f27 100644 --- a/composer.lock +++ b/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": "931f8f1912a751a5fd9cba28f6ff9c37", + "content-hash": "90d590c03c4ae7a72bebb838a07b2abd", "packages": [ { "name": "doctrine/annotations", @@ -76,16 +76,16 @@ }, { "name": "doctrine/cache", - "version": "v1.8.0", + "version": "v1.8.1", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57" + "reference": "d4374ae95b36062d02ef310100ed33d78738d76c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/d768d58baee9a4862ca783840eca1b9add7a7f57", - "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57", + "url": "https://api.github.com/repos/doctrine/cache/zipball/d4374ae95b36062d02ef310100ed33d78738d76c", + "reference": "d4374ae95b36062d02ef310100ed33d78738d76c", "shasum": "" }, "require": { @@ -120,6 +120,10 @@ "MIT" ], "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -128,10 +132,6 @@ "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, { "name": "Jonathan Wage", "email": "jonwage@gmail.com" @@ -147,7 +147,7 @@ "cache", "caching" ], - "time": "2018-08-21T18:01:43+00:00" + "time": "2019-10-28T09:31:32+00:00" }, { "name": "doctrine/collections", @@ -304,31 +304,30 @@ }, { "name": "doctrine/dbal", - "version": "v2.9.2", + "version": "v2.10.0", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9" + "reference": "0c9a646775ef549eb0a213a4f9bd4381d9b4d934" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9", - "reference": "22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/0c9a646775ef549eb0a213a4f9bd4381d9b4d934", + "reference": "0c9a646775ef549eb0a213a4f9bd4381d9b4d934", "shasum": "" }, "require": { "doctrine/cache": "^1.0", "doctrine/event-manager": "^1.0", "ext-pdo": "*", - "php": "^7.1" + "php": "^7.2" }, "require-dev": { - "doctrine/coding-standard": "^5.0", - "jetbrains/phpstorm-stubs": "^2018.1.2", - "phpstan/phpstan": "^0.10.1", - "phpunit/phpunit": "^7.4", - "symfony/console": "^2.0.5|^3.0|^4.0", - "symfony/phpunit-bridge": "^3.4.5|^4.0.5" + "doctrine/coding-standard": "^6.0", + "jetbrains/phpstorm-stubs": "^2019.1", + "phpstan/phpstan": "^0.11.3", + "phpunit/phpunit": "^8.4.1", + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -339,7 +338,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.9.x-dev", + "dev-master": "2.10.x-dev", "dev-develop": "3.0.x-dev" } }, @@ -353,6 +352,10 @@ "MIT" ], "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -361,10 +364,6 @@ "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, { "name": "Jonathan Wage", "email": "jonwage@gmail.com" @@ -375,14 +374,25 @@ "keywords": [ "abstraction", "database", + "db2", "dbal", + "mariadb", + "mssql", "mysql", - "persistence", + "oci8", + "oracle", + "pdo", "pgsql", - "php", - "queryobject" + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlanywhere", + "sqlite", + "sqlserver", + "sqlsrv" ], - "time": "2018-12-31T03:27:51+00:00" + "time": "2019-11-03T16:50:43+00:00" }, { "name": "doctrine/doctrine-bundle", @@ -2574,16 +2584,16 @@ }, { "name": "psr/log", - "version": "1.1.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", "shasum": "" }, "require": { @@ -2592,7 +2602,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -2617,20 +2627,20 @@ "psr", "psr-3" ], - "time": "2018-11-20T15:27:04+00:00" + "time": "2019-11-01T11:05:21+00:00" }, { "name": "symfony/cache", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "40c62600ebad1ed2defbf7d35523d918a73ab330" + "reference": "30a51b2401ee15bfc7ea98bd7af0f9d80e26e649" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/40c62600ebad1ed2defbf7d35523d918a73ab330", - "reference": "40c62600ebad1ed2defbf7d35523d918a73ab330", + "url": "https://api.github.com/repos/symfony/cache/zipball/30a51b2401ee15bfc7ea98bd7af0f9d80e26e649", + "reference": "30a51b2401ee15bfc7ea98bd7af0f9d80e26e649", "shasum": "" }, "require": { @@ -2695,7 +2705,7 @@ "caching", "psr6" ], - "time": "2019-10-04T10:57:53+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/cache-contracts", @@ -2757,16 +2767,16 @@ }, { "name": "symfony/config", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "0acb26407a9e1a64a275142f0ae5e36436342720" + "reference": "f4ee0ebb91b16ca1ac105aa39f9284f3cac19a15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/0acb26407a9e1a64a275142f0ae5e36436342720", - "reference": "0acb26407a9e1a64a275142f0ae5e36436342720", + "url": "https://api.github.com/repos/symfony/config/zipball/f4ee0ebb91b16ca1ac105aa39f9284f3cac19a15", + "reference": "f4ee0ebb91b16ca1ac105aa39f9284f3cac19a15", "shasum": "" }, "require": { @@ -2817,20 +2827,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2019-09-19T15:51:53+00:00" + "time": "2019-10-30T13:18:51+00:00" }, { "name": "symfony/console", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "929ddf360d401b958f611d44e726094ab46a7369" + "reference": "136c4bd62ea871d00843d1bc0316de4c4a84bb78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/929ddf360d401b958f611d44e726094ab46a7369", - "reference": "929ddf360d401b958f611d44e726094ab46a7369", + "url": "https://api.github.com/repos/symfony/console/zipball/136c4bd62ea871d00843d1bc0316de4c4a84bb78", + "reference": "136c4bd62ea871d00843d1bc0316de4c4a84bb78", "shasum": "" }, "require": { @@ -2892,20 +2902,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-10-07T12:36:49+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/debug", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "cc5c1efd0edfcfd10b354750594a46b3dd2afbbe" + "reference": "5ea9c3e01989a86ceaa0283f21234b12deadf5e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/cc5c1efd0edfcfd10b354750594a46b3dd2afbbe", - "reference": "cc5c1efd0edfcfd10b354750594a46b3dd2afbbe", + "url": "https://api.github.com/repos/symfony/debug/zipball/5ea9c3e01989a86ceaa0283f21234b12deadf5e2", + "reference": "5ea9c3e01989a86ceaa0283f21234b12deadf5e2", "shasum": "" }, "require": { @@ -2948,20 +2958,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2019-09-19T15:51:53+00:00" + "time": "2019-10-28T17:07:32+00:00" }, { "name": "symfony/dependency-injection", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "e1e0762a814b957a1092bff75a550db49724d05b" + "reference": "fc036941dfafa037a7485714b62593c7eaf68edd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/e1e0762a814b957a1092bff75a550db49724d05b", - "reference": "e1e0762a814b957a1092bff75a550db49724d05b", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/fc036941dfafa037a7485714b62593c7eaf68edd", + "reference": "fc036941dfafa037a7485714b62593c7eaf68edd", "shasum": "" }, "require": { @@ -3021,20 +3031,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2019-10-02T12:58:58+00:00" + "time": "2019-10-28T17:07:32+00:00" }, { "name": "symfony/doctrine-bridge", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "486fa65a74692d84f250087c79d0b89d30d655a8" + "reference": "2c1397c1ec5b0112e78aec8ef8325d449eb414d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/486fa65a74692d84f250087c79d0b89d30d655a8", - "reference": "486fa65a74692d84f250087c79d0b89d30d655a8", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/2c1397c1ec5b0112e78aec8ef8325d449eb414d7", + "reference": "2c1397c1ec5b0112e78aec8ef8325d449eb414d7", "shasum": "" }, "require": { @@ -3111,27 +3121,27 @@ ], "description": "Symfony Doctrine Bridge", "homepage": "https://symfony.com", - "time": "2019-09-08T20:39:53+00:00" + "time": "2019-10-29T10:03:05+00:00" }, { "name": "symfony/dotenv", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "1785b18148a016b8f4e6a612291188d568e1f9cd" + "reference": "62d93bf07edd0d76f033d65a7fd1c1ce50d28b50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/1785b18148a016b8f4e6a612291188d568e1f9cd", - "reference": "1785b18148a016b8f4e6a612291188d568e1f9cd", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/62d93bf07edd0d76f033d65a7fd1c1ce50d28b50", + "reference": "62d93bf07edd0d76f033d65a7fd1c1ce50d28b50", "shasum": "" }, "require": { "php": "^7.1.3" }, "require-dev": { - "symfony/process": "~3.4|~4.0" + "symfony/process": "^3.4.2|^4.0" }, "type": "library", "extra": { @@ -3168,11 +3178,11 @@ "env", "environment" ], - "time": "2019-08-03T21:50:52+00:00" + "time": "2019-10-18T11:23:15+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -3300,7 +3310,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -3350,16 +3360,16 @@ }, { "name": "symfony/finder", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "5e575faa95548d0586f6bedaeabec259714e44d1" + "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/5e575faa95548d0586f6bedaeabec259714e44d1", - "reference": "5e575faa95548d0586f6bedaeabec259714e44d1", + "url": "https://api.github.com/repos/symfony/finder/zipball/72a068f77e317ae77c0a0495236ad292cfb5ce6f", + "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f", "shasum": "" }, "require": { @@ -3395,7 +3405,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-09-16T11:29:48+00:00" + "time": "2019-10-30T12:53:54+00:00" }, { "name": "symfony/flex", @@ -3448,16 +3458,16 @@ }, { "name": "symfony/form", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/form.git", - "reference": "4a799fb998c325ac77fc5513f35be033cc0edf3c" + "reference": "1134c093d6fd339ea1b8823c50940607b58349f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/form/zipball/4a799fb998c325ac77fc5513f35be033cc0edf3c", - "reference": "4a799fb998c325ac77fc5513f35be033cc0edf3c", + "url": "https://api.github.com/repos/symfony/form/zipball/1134c093d6fd339ea1b8823c50940607b58349f2", + "reference": "1134c093d6fd339ea1b8823c50940607b58349f2", "shasum": "" }, "require": { @@ -3528,20 +3538,20 @@ ], "description": "Symfony Form Component", "homepage": "https://symfony.com", - "time": "2019-09-27T14:21:32+00:00" + "time": "2019-10-28T17:07:32+00:00" }, { "name": "symfony/framework-bundle", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "fca765488ecea04bf6c1c502d7b0214fa29460d8" + "reference": "f93b4202207a85822d4ee2cb62e9805e4ea95006" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/fca765488ecea04bf6c1c502d7b0214fa29460d8", - "reference": "fca765488ecea04bf6c1c502d7b0214fa29460d8", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/f93b4202207a85822d4ee2cb62e9805e4ea95006", + "reference": "f93b4202207a85822d4ee2cb62e9805e4ea95006", "shasum": "" }, "require": { @@ -3568,14 +3578,14 @@ "symfony/dom-crawler": "<4.3", "symfony/dotenv": "<4.2", "symfony/form": "<4.3", - "symfony/messenger": "<4.3", + "symfony/messenger": "<4.3.6", "symfony/property-info": "<3.4", "symfony/serializer": "<4.2", "symfony/stopwatch": "<3.4", "symfony/translation": "<4.3", "symfony/twig-bridge": "<4.1.1", "symfony/validator": "<4.1", - "symfony/workflow": "<4.3" + "symfony/workflow": "<4.3.6" }, "require-dev": { "doctrine/annotations": "~1.7", @@ -3592,7 +3602,7 @@ "symfony/http-client": "^4.3", "symfony/lock": "~3.4|~4.0", "symfony/mailer": "^4.3", - "symfony/messenger": "^4.3", + "symfony/messenger": "^4.3.6", "symfony/mime": "^4.3", "symfony/polyfill-intl-icu": "~1.0", "symfony/process": "~3.4|~4.0", @@ -3607,7 +3617,7 @@ "symfony/validator": "^4.1", "symfony/var-dumper": "^4.3", "symfony/web-link": "~3.4|~4.0", - "symfony/workflow": "^4.3", + "symfony/workflow": "^4.3.6", "symfony/yaml": "~3.4|~4.0", "twig/twig": "~1.41|~2.10" }, @@ -3651,20 +3661,20 @@ ], "description": "Symfony FrameworkBundle", "homepage": "https://symfony.com", - "time": "2019-10-04T17:45:43+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/http-foundation", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "76590ced16d4674780863471bae10452b79210a5" + "reference": "38f63e471cda9d37ac06e76d14c5ea2ec5887051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/76590ced16d4674780863471bae10452b79210a5", - "reference": "76590ced16d4674780863471bae10452b79210a5", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/38f63e471cda9d37ac06e76d14c5ea2ec5887051", + "reference": "38f63e471cda9d37ac06e76d14c5ea2ec5887051", "shasum": "" }, "require": { @@ -3706,20 +3716,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2019-10-04T19:48:13+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "5f08141850932e8019c01d8988bf3ed6367d2991" + "reference": "56acfda9e734e8715b3b0e6859cdb4f5b28757bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/5f08141850932e8019c01d8988bf3ed6367d2991", - "reference": "5f08141850932e8019c01d8988bf3ed6367d2991", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/56acfda9e734e8715b3b0e6859cdb4f5b28757bf", + "reference": "56acfda9e734e8715b3b0e6859cdb4f5b28757bf", "shasum": "" }, "require": { @@ -3798,11 +3808,11 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2019-10-07T15:06:41+00:00" + "time": "2019-11-01T10:00:03+00:00" }, { "name": "symfony/inflector", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", @@ -3860,7 +3870,7 @@ }, { "name": "symfony/intl", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/intl.git", @@ -3935,16 +3945,16 @@ }, { "name": "symfony/mime", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "32f71570547b91879fdbd9cf50317d556ae86916" + "reference": "3c0e197529da6e59b217615ba8ee7604df88b551" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/32f71570547b91879fdbd9cf50317d556ae86916", - "reference": "32f71570547b91879fdbd9cf50317d556ae86916", + "url": "https://api.github.com/repos/symfony/mime/zipball/3c0e197529da6e59b217615ba8ee7604df88b551", + "reference": "3c0e197529da6e59b217615ba8ee7604df88b551", "shasum": "" }, "require": { @@ -3990,20 +4000,20 @@ "mime", "mime-type" ], - "time": "2019-09-19T17:00:15+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/options-resolver", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "81c2e120522a42f623233968244baebd6b36cb6a" + "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/81c2e120522a42f623233968244baebd6b36cb6a", - "reference": "81c2e120522a42f623233968244baebd6b36cb6a", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/f46c7fc8e207bd8a2188f54f8738f232533765a4", + "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4", "shasum": "" }, "require": { @@ -4044,7 +4054,7 @@ "configuration", "options" ], - "time": "2019-08-08T09:29:19+00:00" + "time": "2019-10-28T20:59:01+00:00" }, { "name": "symfony/orm-pack", @@ -4368,7 +4378,7 @@ }, { "name": "symfony/property-access", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", @@ -4435,16 +4445,16 @@ }, { "name": "symfony/routing", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "3b174ef04fe66696524efad1e5f7a6c663d822ea" + "reference": "63a9920cc86fcc745e5ea254e362f02b615290b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/3b174ef04fe66696524efad1e5f7a6c663d822ea", - "reference": "3b174ef04fe66696524efad1e5f7a6c663d822ea", + "url": "https://api.github.com/repos/symfony/routing/zipball/63a9920cc86fcc745e5ea254e362f02b615290b9", + "reference": "63a9920cc86fcc745e5ea254e362f02b615290b9", "shasum": "" }, "require": { @@ -4507,20 +4517,20 @@ "uri", "url" ], - "time": "2019-10-04T20:57:10+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/security-core", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "a6f763c1f093b833d371f813519a1a8c07b75fb9" + "reference": "8c46ea77fe0738f2495eacc08fa34e1e19ff0b0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/a6f763c1f093b833d371f813519a1a8c07b75fb9", - "reference": "a6f763c1f093b833d371f813519a1a8c07b75fb9", + "url": "https://api.github.com/repos/symfony/security-core/zipball/8c46ea77fe0738f2495eacc08fa34e1e19ff0b0d", + "reference": "8c46ea77fe0738f2495eacc08fa34e1e19ff0b0d", "shasum": "" }, "require": { @@ -4579,7 +4589,7 @@ ], "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", - "time": "2019-09-10T11:22:25+00:00" + "time": "2019-10-28T17:07:32+00:00" }, { "name": "symfony/service-contracts", @@ -4641,7 +4651,7 @@ }, { "name": "symfony/stopwatch", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -4748,16 +4758,16 @@ }, { "name": "symfony/validator", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "dd344bae7894ce8d6c399d854d894eb6e52ee178" + "reference": "33ba80582cab3400c9aae66f5e58bb51d7412192" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/dd344bae7894ce8d6c399d854d894eb6e52ee178", - "reference": "dd344bae7894ce8d6c399d854d894eb6e52ee178", + "url": "https://api.github.com/repos/symfony/validator/zipball/33ba80582cab3400c9aae66f5e58bb51d7412192", + "reference": "33ba80582cab3400c9aae66f5e58bb51d7412192", "shasum": "" }, "require": { @@ -4837,11 +4847,11 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2019-10-07T12:36:49+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "symfony/var-exporter", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", @@ -4901,16 +4911,16 @@ }, { "name": "symfony/yaml", - "version": "v4.3.5", + "version": "v4.3.6", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "41e16350a2a1c7383c4735aa2f9fce74cf3d1178" + "reference": "324cf4b19c345465fad14f3602050519e09e361d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/41e16350a2a1c7383c4735aa2f9fce74cf3d1178", - "reference": "41e16350a2a1c7383c4735aa2f9fce74cf3d1178", + "url": "https://api.github.com/repos/symfony/yaml/zipball/324cf4b19c345465fad14f3602050519e09e361d", + "reference": "324cf4b19c345465fad14f3602050519e09e361d", "shasum": "" }, "require": { @@ -4956,7 +4966,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-09-11T15:41:19+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "willdurand/jsonp-callback-validator", @@ -5160,17 +5170,141 @@ ], "packages-dev": [ { - "name": "nikic/php-parser", - "version": "v4.2.4", + "name": "doctrine/data-fixtures", + "version": "v1.3.2", "source": { "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4" + "url": "https://github.com/doctrine/data-fixtures.git", + "reference": "09b16943b27f3d80d63988d100ff256148c2f78b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/97e59c7a16464196a8b9c77c47df68e4a39a45c4", - "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4", + "url": "https://api.github.com/repos/doctrine/data-fixtures/zipball/09b16943b27f3d80d63988d100ff256148c2f78b", + "reference": "09b16943b27f3d80d63988d100ff256148c2f78b", + "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": "2019-07-10T18:30:35+00:00" + }, + { + "name": "doctrine/doctrine-fixtures-bundle", + "version": "3.2.2", + "source": { + "type": "git", + "url": "https://github.com/doctrine/DoctrineFixturesBundle.git", + "reference": "90e4a4f968b2dae40e290a6ee516957af043f16c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/90e4a4f968b2dae40e290a6ee516957af043f16c", + "reference": "90e4a4f968b2dae40e290a6ee516957af043f16c", + "shasum": "" + }, + "require": { + "doctrine/data-fixtures": "^1.3", + "doctrine/doctrine-bundle": "^1.6", + "doctrine/orm": "^2.6.0", + "php": "^7.1", + "symfony/doctrine-bridge": "~3.4|^4.1", + "symfony/framework-bundle": "^3.4|^4.1" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "phpunit/phpunit": "^7.4", + "symfony/phpunit-bridge": "^4.1" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "3.2.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": "2019-06-12T12:03:37+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.2.5", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "b76bbc3c51f22c570648de48e8c2d941ed5e2cf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/b76bbc3c51f22c570648de48e8c2d941ed5e2cf2", + "reference": "b76bbc3c51f22c570648de48e8c2d941ed5e2cf2", "shasum": "" }, "require": { @@ -5178,6 +5312,7 @@ "php": ">=7.0" }, "require-dev": { + "ircmaxell/php-yacc": "0.0.4", "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0" }, "bin": [ @@ -5208,98 +5343,20 @@ "parser", "php" ], - "time": "2019-09-01T07:51:21+00:00" - }, - { - "name": "sensio/framework-extra-bundle", - "version": "v5.5.1", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", - "reference": "dfc2c4df9f7d465a65c770e9feb578fe071636f7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/dfc2c4df9f7d465a65c770e9feb578fe071636f7", - "reference": "dfc2c4df9f7d465a65c770e9feb578fe071636f7", - "shasum": "" - }, - "require": { - "doctrine/annotations": "^1.0", - "php": ">=7.1.3", - "symfony/config": "^4.3|^5.0", - "symfony/dependency-injection": "^4.3|^5.0", - "symfony/framework-bundle": "^4.3|^5.0", - "symfony/http-kernel": "^4.3|^5.0" - }, - "conflict": { - "doctrine/doctrine-cache-bundle": "<1.3.1" - }, - "require-dev": { - "doctrine/doctrine-bundle": "^1.11|^2.0", - "doctrine/orm": "^2.5", - "nyholm/psr7": "^1.1", - "symfony/browser-kit": "^4.3|^5.0", - "symfony/dom-crawler": "^4.3|^5.0", - "symfony/expression-language": "^4.3|^5.0", - "symfony/finder": "^4.3|^5.0", - "symfony/monolog-bridge": "^4.0|^5.0", - "symfony/monolog-bundle": "^3.2", - "symfony/phpunit-bridge": "^4.3.5|^5.0", - "symfony/psr-http-message-bridge": "^1.1", - "symfony/security-bundle": "^4.3|^5.0", - "symfony/twig-bundle": "^4.3|^5.0", - "symfony/yaml": "^4.3|^5.0", - "twig/twig": "^1.34|^2.4|^3.0" - }, - "suggest": { - "symfony/expression-language": "", - "symfony/psr-http-message-bridge": "To use the PSR-7 converters", - "symfony/security-bundle": "" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "5.5.x-dev" - } - }, - "autoload": { - "psr-4": { - "Sensio\\Bundle\\FrameworkExtraBundle\\": "src/" - }, - "exclude-from-classmap": [ - "/tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "This bundle provides a way to configure your controllers with annotations", - "keywords": [ - "annotations", - "controllers" - ], - "time": "2019-10-16T18:54:45+00:00" + "time": "2019-10-25T18:33:07+00:00" }, { "name": "symfony/maker-bundle", - "version": "v1.14.0", + "version": "v1.14.2", "source": { "type": "git", "url": "https://github.com/symfony/maker-bundle.git", - "reference": "31a7597a99d8315bfa8eb0bfd2247ab880cb0c1b" + "reference": "5dfcbc400b168943f15a21d4283ad848605d9bc2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/maker-bundle/zipball/31a7597a99d8315bfa8eb0bfd2247ab880cb0c1b", - "reference": "31a7597a99d8315bfa8eb0bfd2247ab880cb0c1b", + "url": "https://api.github.com/repos/symfony/maker-bundle/zipball/5dfcbc400b168943f15a21d4283ad848605d9bc2", + "reference": "5dfcbc400b168943f15a21d4283ad848605d9bc2", "shasum": "" }, "require": { @@ -5354,7 +5411,7 @@ "scaffold", "scaffolding" ], - "time": "2019-10-21T12:43:48+00:00" + "time": "2019-11-04T13:50:13+00:00" }, { "name": "symfony/process", diff --git a/config/bundles.php b/config/bundles.php index c022334..2665795 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -3,11 +3,11 @@ return [ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], FOS\RestBundle\FOSRestBundle::class => ['all' => true], - Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true], Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true], Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true], + Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], ]; diff --git a/config/packages/fos_rest.yaml b/config/packages/fos_rest.yaml index d0ff82a..3a2d868 100644 --- a/config/packages/fos_rest.yaml +++ b/config/packages/fos_rest.yaml @@ -3,8 +3,8 @@ fos_rest: # param_fetcher_listener: true # allowed_methods_listener: true # routing_loader: true - # view: - # view_response_listener: true + # view: + # view_response_listener: true # exception: # codes: # App\Exception\MyException: 403 diff --git a/config/packages/sensio_framework_extra.yaml b/config/packages/sensio_framework_extra.yaml deleted file mode 100644 index 1821ccc..0000000 --- a/config/packages/sensio_framework_extra.yaml +++ /dev/null @@ -1,3 +0,0 @@ -sensio_framework_extra: - router: - annotations: false diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index 7149c66..486bf14 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -2,8 +2,10 @@ namespace App\Controller; +use App\Entity\Poll; use FOS\RestBundle\Controller\Annotations\Get; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; +use FOS\RestBundle\Controller\Annotations\Post; +use FOS\RestBundle\Controller\Annotations\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; /** @@ -14,7 +16,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; class DefaultController extends AbstractController { /** * @Get(path ="/", - * name = "app_get_default") + * name = "get_default") */ public function index() { return $this->json( [ @@ -26,13 +28,107 @@ class DefaultController extends AbstractController { /** * @Get( * path = "/my-polls", - * name = "app_get_my_polls", + * name = "get_my_polls", * requirements = {"access_token"="\w+"} * ) */ public function showMyPollsAction() { return $this->json( [ 'message' => 'here are your polls', + 'data' => new Poll(), ] ); } + + /** + * @Get( + * path = "/poll/{id}/comments", + * name = "get_poll_comment", + * requirements = {"id"="\d+"} + * ) + */ + public function getPollCommentsAction() { + return $this->json( [ + 'message' => 'here are your comments of the poll', + ] ); + } + + /** + * @Get( + * path = "/poll/all", + * name = "get_all_polls" + * ) + */ + public function getAllPollsAction() { + $repository = $this->getDoctrine()->getRepository( Poll::class ); + $polls = $repository->findall(); + + + return $this->json( [ + 'message' => 'here are your polls', + 'data' => $polls, + ] ); + } + + /** + * @Post( + * path = "/poll/new", + * name = "new_polls", + * requirements = {"creator"="\w+"} + * ) + */ + public function newPollAction( Poll $poll ) { + $em = $this->getDoctrine()->getManager(); + + $em->persist( $poll ); + $em->flush(); + +// return $poll; + + return $this->json( $poll ); + +// return $this->json( [ +// 'message' => 'you created a poll', +// ] ); + } + + /** + * @Get( + * path = "/poll/{id}", + * name = "get_poll", + * requirements = {"id"="\d+"} + * ) + */ + public function getPollConfig( Poll $poll ) { + return $this->json( [ + 'message' => 'your poll config', + 'data' => $poll, + ] ); + } + + /** + * @Post( + * path = "/poll/{id}/up", + * name = "up_poll", + * requirements = {"content"="\w+"} + * ) + */ + public function updatePollConfig( Poll $poll ) { + return $this->json( [ + 'message' => 'you updated the poll', + ] ); + } + + /** + * @Post( + * path = "/comment/new", + * name = "new_comment", + * requirements = {"content"="\w+"} + * ) + */ + public function newCommentAction() { + return $this->json( [ + 'message' => 'you created a comment', + ] ); + } + } diff --git a/src/DataFixtures/AppFixtures.php b/src/DataFixtures/AppFixtures.php new file mode 100644 index 0000000..fece475 --- /dev/null +++ b/src/DataFixtures/AppFixtures.php @@ -0,0 +1,17 @@ +persist($product); + + $manager->flush(); + } +} diff --git a/src/DataFixtures/AppPollFixtures.php b/src/DataFixtures/AppPollFixtures.php new file mode 100644 index 0000000..1bf6e4e --- /dev/null +++ b/src/DataFixtures/AppPollFixtures.php @@ -0,0 +1,22 @@ +setTitle( 'démo sondage de texte' ); + $poll->setCreationDate( new \DateTime() ); + + $poll->setExpiracyDate( new \DateTime( ( time() + 3600 * 24 ) ) ); + + $manager->persist( $poll ); + + $manager->flush(); + } +} diff --git a/symfony.lock b/symfony.lock index 240fe63..fa39b97 100644 --- a/symfony.lock +++ b/symfony.lock @@ -20,6 +20,9 @@ "doctrine/common": { "version": "v2.11.0" }, + "doctrine/data-fixtures": { + "version": "v1.3.2" + }, "doctrine/dbal": { "version": "v2.9.2" }, @@ -41,6 +44,18 @@ "doctrine/doctrine-cache-bundle": { "version": "1.3.5" }, + "doctrine/doctrine-fixtures-bundle": { + "version": "3.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.0", + "ref": "fc52d86631a6dfd9fdf3381d0b7e3df2069e51b3" + }, + "files": [ + "src/DataFixtures/AppFixtures.php" + ] + }, "doctrine/doctrine-migrations-bundle": { "version": "1.2", "recipe": { @@ -170,18 +185,6 @@ "psr/log": { "version": "1.1.0" }, - "sensio/framework-extra-bundle": { - "version": "5.2", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "5.2", - "ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b" - }, - "files": [ - "config/packages/sensio_framework_extra.yaml" - ] - }, "symfony/cache": { "version": "v4.3.5" },