From 4ed6c454417e1924bd5f1d53c4f7d9f7b320b9de Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Mon, 30 Nov 2020 00:21:41 +0100 Subject: [PATCH] Fix symfony version to 4.4 --- api/{.env.dist => .env} | 13 +- api/.gitignore | 5 +- api/composer.json | 3 +- api/composer.lock | 945 +++++++++--------- api/config/bootstrap.php | 23 + api/config/packages/cache.yaml | 19 + api/config/packages/doctrine.yaml | 11 +- api/config/packages/doctrine_migrations.yaml | 4 +- api/config/packages/framework.yaml | 26 +- api/config/packages/prod/doctrine.yaml | 25 +- api/config/packages/test/twig.yaml | 2 + api/config/packages/twig.yaml | 3 +- api/config/preload.php | 9 + api/dev.Dockerfile | 6 +- api/{src/Controller => migrations}/.gitignore | 0 .../Version20180907212032.php | 0 .../Version20181027124203.php | 0 .../Version20190111212909.php | 0 .../Version20200103160747.php | 0 .../Version20200103170517.php | 0 .../Version20200131151757.php | 0 .../Version20200206183956.php | 0 .../Version20200314112552.php | 0 api/public/index.php | 23 +- api/src/Functions/index.php | 2 +- api/src/Kernel.php | 40 +- api/src/Migrations/.gitignore | 0 api/symfony.lock | 78 +- 28 files changed, 655 insertions(+), 582 deletions(-) rename api/{.env.dist => .env} (52%) create mode 100644 api/config/bootstrap.php create mode 100644 api/config/packages/cache.yaml create mode 100644 api/config/packages/test/twig.yaml create mode 100644 api/config/preload.php rename api/{src/Controller => migrations}/.gitignore (100%) rename api/{src/Migrations => migrations}/Version20180907212032.php (100%) rename api/{src/Migrations => migrations}/Version20181027124203.php (100%) rename api/{src/Migrations => migrations}/Version20190111212909.php (100%) rename api/{src/Migrations => migrations}/Version20200103160747.php (100%) rename api/{src/Migrations => migrations}/Version20200103170517.php (100%) rename api/{src/Migrations => migrations}/Version20200131151757.php (100%) rename api/{src/Migrations => migrations}/Version20200206183956.php (100%) rename api/{src/Migrations => migrations}/Version20200314112552.php (100%) delete mode 100644 api/src/Migrations/.gitignore diff --git a/api/.env.dist b/api/.env similarity index 52% rename from api/.env.dist rename to api/.env index 69f196a..8e84d99 100644 --- a/api/.env.dist +++ b/api/.env @@ -4,12 +4,15 @@ ###> symfony/framework-bundle ### APP_ENV=dev -APP_SECRET=1bdf86cdc78fba654e4f2c309c6bbdbd +APP_SECRET=494a9d1f8cc383f16075f4d5e54ae1a2 +#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 +#TRUSTED_HOSTS='^(localhost|example\.com)$' ###< symfony/framework-bundle ### ###> doctrine/doctrine-bundle ### -# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -# Configure your db driver and server_version in config/packages/doctrine.yaml -DATABASE_URL=sqlite:///%kernel.project_dir%/var/app.db +# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml +# +DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db" +# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7" ###< doctrine/doctrine-bundle ### diff --git a/api/.gitignore b/api/.gitignore index bc4b385..5aa718b 100644 --- a/api/.gitignore +++ b/api/.gitignore @@ -1,5 +1,8 @@ ###> symfony/framework-bundle ### -/.env +/.env.local +/.env.local.php +/.env.*.local +/config/secrets/prod/prod.decrypt.private.php /public/bundles/ /var/ /vendor/ diff --git a/api/composer.json b/api/composer.json index 33a7ea3..49dd6d3 100644 --- a/api/composer.json +++ b/api/composer.json @@ -77,7 +77,8 @@ }, "extra": { "symfony": { - "allow-contrib": true + "allow-contrib": true, + "require": "4.4.*" } }, "repositories": [ diff --git a/api/composer.lock b/api/composer.lock index f32a200..79d594b 100644 --- a/api/composer.lock +++ b/api/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": "294e71e4f7c26065cc294792790581e9", + "content-hash": "b29e467a46157fea720fdc35c6921f47", "packages": [ { "name": "baldinof/roadrunner-bundle", @@ -2348,21 +2348,21 @@ }, { "name": "monolog/monolog", - "version": "2.1.1", + "version": "1.25.5", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "f9eee5cec93dfb313a38b6b288741e84e53f02d5" + "reference": "1817faadd1846cd08be9a49e905dc68823bc38c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f9eee5cec93dfb313a38b6b288741e84e53f02d5", - "reference": "f9eee5cec93dfb313a38b6b288741e84e53f02d5", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1817faadd1846cd08be9a49e905dc68823bc38c0", + "reference": "1817faadd1846cd08be9a49e905dc68823bc38c0", "shasum": "" }, "require": { - "php": ">=7.2", - "psr/log": "^1.0.1" + "php": ">=5.3.0", + "psr/log": "~1.0" }, "provide": { "psr/log-implementation": "1.0.0" @@ -2370,36 +2370,32 @@ "require-dev": { "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", - "elasticsearch/elasticsearch": "^6.0", - "graylog2/gelf-php": "^1.4.2", + "graylog2/gelf-php": "~1.0", "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "php-parallel-lint/php-parallel-lint": "^1.0", - "phpspec/prophecy": "^1.6.1", - "phpunit/phpunit": "^8.5", - "predis/predis": "^1.1", - "rollbar/rollbar": "^1.3", + "phpunit/phpunit": "~4.5", "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", "swiftmailer/swiftmailer": "^5.3|^6.0" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mbstring": "Allow to work properly with unicode symbols", - "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", "php-console/php-console": "Allow sending log messages to Google Chrome", "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -2427,7 +2423,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.1.1" + "source": "https://github.com/Seldaek/monolog/tree/1.25.5" }, "funding": [ { @@ -2439,7 +2435,7 @@ "type": "tidelift" } ], - "time": "2020-07-23T08:41:23+00:00" + "time": "2020-07-23T08:35:51+00:00" }, { "name": "nelmio/api-doc-bundle", @@ -3535,7 +3531,7 @@ }, { "name": "symfony/asset", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", @@ -3583,7 +3579,7 @@ "description": "Symfony Asset Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/asset/tree/v4.4.16" + "source": "https://github.com/symfony/asset/tree/v4.4.17" }, "funding": [ { @@ -3603,30 +3599,29 @@ }, { "name": "symfony/cache", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "d7bc33e9f9028f49f87057e7944c076d9593f046" + "reference": "6d330ca81ce5c98f22224c980507a7f7a7df82e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/d7bc33e9f9028f49f87057e7944c076d9593f046", - "reference": "d7bc33e9f9028f49f87057e7944c076d9593f046", + "url": "https://api.github.com/repos/symfony/cache/zipball/6d330ca81ce5c98f22224c980507a7f7a7df82e8", + "reference": "6d330ca81ce5c98f22224c980507a7f7a7df82e8", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "psr/cache": "~1.0", "psr/log": "~1.0", "symfony/cache-contracts": "^1.1.7|^2", - "symfony/polyfill-php80": "^1.15", "symfony/service-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0" + "symfony/var-exporter": "^4.2|^5.0" }, "conflict": { "doctrine/dbal": "<2.5", - "symfony/dependency-injection": "<4.4", + "symfony/dependency-injection": "<3.4", "symfony/http-kernel": "<4.4", "symfony/var-dumper": "<4.4" }, @@ -3641,9 +3636,10 @@ "doctrine/dbal": "^2.5|^3.0", "predis/predis": "^1.1", "psr/simple-cache": "^1.0", - "symfony/config": "^4.4|^5.0", - "symfony/dependency-injection": "^4.4|^5.0", + "symfony/config": "^4.2|^5.0", + "symfony/dependency-injection": "^3.4|^4.1|^5.0", "symfony/filesystem": "^4.4|^5.0", + "symfony/http-kernel": "^4.4|^5.0", "symfony/var-dumper": "^4.4|^5.0" }, "type": "library", @@ -3676,7 +3672,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v5.1.8" + "source": "https://github.com/symfony/cache/tree/v4.4.17" }, "funding": [ { @@ -3692,7 +3688,7 @@ "type": "tidelift" } ], - "time": "2020-10-25T23:21:56+00:00" + "time": "2020-11-16T17:15:10+00:00" }, { "name": "symfony/cache-contracts", @@ -3775,34 +3771,32 @@ }, { "name": "symfony/config", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "11baeefa4c179d6908655a7b6be728f62367c193" + "reference": "4da4a6b07cc7d8d7d3e29842bc9c20401d555065" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/11baeefa4c179d6908655a7b6be728f62367c193", - "reference": "11baeefa4c179d6908655a7b6be728f62367c193", + "url": "https://api.github.com/repos/symfony/config/zipball/4da4a6b07cc7d8d7d3e29842bc9c20401d555065", + "reference": "4da4a6b07cc7d8d7d3e29842bc9c20401d555065", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/filesystem": "^4.4|^5.0", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.1.3", + "symfony/filesystem": "^3.4|^4.0|^5.0", + "symfony/polyfill-ctype": "~1.8" }, "conflict": { - "symfony/finder": "<4.4" + "symfony/finder": "<3.4" }, "require-dev": { - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/finder": "^4.4|^5.0", - "symfony/messenger": "^4.4|^5.0", + "symfony/event-dispatcher": "^3.4|^4.0|^5.0", + "symfony/finder": "^3.4|^4.0|^5.0", + "symfony/messenger": "^4.1|^5.0", "symfony/service-contracts": "^1.1|^2", - "symfony/yaml": "^4.4|^5.0" + "symfony/yaml": "^3.4|^4.0|^5.0" }, "suggest": { "symfony/yaml": "To use the yaml reference dumper" @@ -3833,7 +3827,7 @@ "description": "Symfony Config Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.1.8" + "source": "https://github.com/symfony/config/tree/v4.4.17" }, "funding": [ { @@ -3849,20 +3843,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-11-16T11:15:53+00:00" }, { "name": "symfony/console", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "20f73dd143a5815d475e0838ff867bce1eebd9d5" + "reference": "c8e37f6928c19816437a4dd7bf16e3bd79941470" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/20f73dd143a5815d475e0838ff867bce1eebd9d5", - "reference": "20f73dd143a5815d475e0838ff867bce1eebd9d5", + "url": "https://api.github.com/repos/symfony/console/zipball/c8e37f6928c19816437a4dd7bf16e3bd79941470", + "reference": "c8e37f6928c19816437a4dd7bf16e3bd79941470", "shasum": "" }, "require": { @@ -3922,7 +3916,7 @@ "description": "Symfony Console Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/console/tree/v4.4.16" + "source": "https://github.com/symfony/console/tree/v4.4.17" }, "funding": [ { @@ -3938,20 +3932,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-28T10:15:42+00:00" }, { "name": "symfony/debug", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "c87adf3fc1cd0bf4758316a3a150d50a8f957ef4" + "reference": "65fe7b49868378319b82da3035fb30801b931c47" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/c87adf3fc1cd0bf4758316a3a150d50a8f957ef4", - "reference": "c87adf3fc1cd0bf4758316a3a150d50a8f957ef4", + "url": "https://api.github.com/repos/symfony/debug/zipball/65fe7b49868378319b82da3035fb30801b931c47", + "reference": "65fe7b49868378319b82da3035fb30801b931c47", "shasum": "" }, "require": { @@ -3991,7 +3985,7 @@ "description": "Symfony Debug Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/debug/tree/v4.4.16" + "source": "https://github.com/symfony/debug/tree/v4.4.17" }, "funding": [ { @@ -4007,43 +4001,41 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/dependency-injection", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "829ca6bceaf68036a123a13a979f3c89289eae78" + "reference": "7126a3a25466a29b844c21394aabf6e7cf717b24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/829ca6bceaf68036a123a13a979f3c89289eae78", - "reference": "829ca6bceaf68036a123a13a979f3c89289eae78", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/7126a3a25466a29b844c21394aabf6e7cf717b24", + "reference": "7126a3a25466a29b844c21394aabf6e7cf717b24", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "psr/container": "^1.0", - "symfony/deprecation-contracts": "^2.1", - "symfony/polyfill-php80": "^1.15", "symfony/service-contracts": "^1.1.6|^2" }, "conflict": { - "symfony/config": "<5.1", - "symfony/finder": "<4.4", - "symfony/proxy-manager-bridge": "<4.4", - "symfony/yaml": "<4.4" + "symfony/config": "<4.3|>=5.0", + "symfony/finder": "<3.4", + "symfony/proxy-manager-bridge": "<3.4", + "symfony/yaml": "<3.4" }, "provide": { "psr/container-implementation": "1.0", "symfony/service-implementation": "1.0" }, "require-dev": { - "symfony/config": "^5.1", - "symfony/expression-language": "^4.4|^5.0", - "symfony/yaml": "^4.4|^5.0" + "symfony/config": "^4.3", + "symfony/expression-language": "^3.4|^4.0|^5.0", + "symfony/yaml": "^3.4|^4.0|^5.0" }, "suggest": { "symfony/config": "", @@ -4078,7 +4070,7 @@ "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v5.1.8" + "source": "https://github.com/symfony/dependency-injection/tree/v4.4.17" }, "funding": [ { @@ -4094,87 +4086,20 @@ "type": "tidelift" } ], - "time": "2020-10-27T10:11:13+00:00" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v2.2.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "5fa56b4074d1ae755beb55617ddafe6f5d78f665" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5fa56b4074d1ae755beb55617ddafe6f5d78f665", - "reference": "5fa56b4074d1ae755beb55617ddafe6f5d78f665", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/master" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2020-11-27T15:54:06+00:00" }, { "name": "symfony/doctrine-bridge", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "12ce8950c685afb954026c2d0c975dfed3fc32f3" + "reference": "cc9cc380f51c3ab7ad396fad8b30fc184894e6c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/12ce8950c685afb954026c2d0c975dfed3fc32f3", - "reference": "12ce8950c685afb954026c2d0c975dfed3fc32f3", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/cc9cc380f51c3ab7ad396fad8b30fc184894e6c1", + "reference": "cc9cc380f51c3ab7ad396fad8b30fc184894e6c1", "shasum": "" }, "require": { @@ -4202,7 +4127,6 @@ "doctrine/data-fixtures": "^1.1", "doctrine/dbal": "~2.4|^3.0", "doctrine/orm": "^2.6.3", - "doctrine/reflection": "~1.0", "symfony/config": "^4.2|^5.0", "symfony/dependency-injection": "^3.4|^4.0|^5.0", "symfony/expression-language": "^3.4|^4.0|^5.0", @@ -4252,7 +4176,7 @@ "description": "Symfony Doctrine Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/doctrine-bridge/tree/v4.4.16" + "source": "https://github.com/symfony/doctrine-bridge/tree/v4.4.17" }, "funding": [ { @@ -4268,20 +4192,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-09T19:21:10+00:00" }, { "name": "symfony/dotenv", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "450e2dad0b42431ad9558bc8adf07e8c4b55d1cd" + "reference": "6dd958a0c30bdf816ddef5052655a06d87fa343c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/450e2dad0b42431ad9558bc8adf07e8c4b55d1cd", - "reference": "450e2dad0b42431ad9558bc8adf07e8c4b55d1cd", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/6dd958a0c30bdf816ddef5052655a06d87fa343c", + "reference": "6dd958a0c30bdf816ddef5052655a06d87fa343c", "shasum": "" }, "require": { @@ -4321,7 +4245,7 @@ "environment" ], "support": { - "source": "https://github.com/symfony/dotenv/tree/v4.4.16" + "source": "https://github.com/symfony/dotenv/tree/v4.4.17" }, "funding": [ { @@ -4337,20 +4261,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-14T17:10:20+00:00" }, { "name": "symfony/error-handler", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "363cca01cabf98e4f1c447b14d0a68617f003613" + "reference": "b0887cf8fc692eef2a4cf11cee3c5f5eb93fcfdf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/363cca01cabf98e4f1c447b14d0a68617f003613", - "reference": "363cca01cabf98e4f1c447b14d0a68617f003613", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/b0887cf8fc692eef2a4cf11cee3c5f5eb93fcfdf", + "reference": "b0887cf8fc692eef2a4cf11cee3c5f5eb93fcfdf", "shasum": "" }, "require": { @@ -4390,7 +4314,7 @@ "description": "Symfony ErrorHandler Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v4.4.16" + "source": "https://github.com/symfony/error-handler/tree/v4.4.17" }, "funding": [ { @@ -4406,20 +4330,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "4204f13d2d0b7ad09454f221bb2195fccdf1fe98" + "reference": "f029d6f21eac61ab23198e7aca40e7638e8c8924" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4204f13d2d0b7ad09454f221bb2195fccdf1fe98", - "reference": "4204f13d2d0b7ad09454f221bb2195fccdf1fe98", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f029d6f21eac61ab23198e7aca40e7638e8c8924", + "reference": "f029d6f21eac61ab23198e7aca40e7638e8c8924", "shasum": "" }, "require": { @@ -4473,7 +4397,7 @@ "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v4.4.16" + "source": "https://github.com/symfony/event-dispatcher/tree/v4.4.17" }, "funding": [ { @@ -4489,7 +4413,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-10-31T22:44:29+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4572,20 +4496,20 @@ }, { "name": "symfony/filesystem", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "df08650ea7aee2d925380069c131a66124d79177" + "reference": "17b83e36a911aefa2cfe04bbf6328ec4c040c1b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/df08650ea7aee2d925380069c131a66124d79177", - "reference": "df08650ea7aee2d925380069c131a66124d79177", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/17b83e36a911aefa2cfe04bbf6328ec4c040c1b2", + "reference": "17b83e36a911aefa2cfe04bbf6328ec4c040c1b2", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "symfony/polyfill-ctype": "~1.8" }, "type": "library", @@ -4614,7 +4538,7 @@ "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.1.8" + "source": "https://github.com/symfony/filesystem/tree/v4.4.17" }, "funding": [ { @@ -4630,24 +4554,24 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-11-11T22:20:15+00:00" }, { "name": "symfony/finder", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "e70eb5a69c2ff61ea135a13d2266e8914a67b3a0" + "reference": "9f1d1d883b79a91ef320c0c6e803494e042ef36e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/e70eb5a69c2ff61ea135a13d2266e8914a67b3a0", - "reference": "e70eb5a69c2ff61ea135a13d2266e8914a67b3a0", + "url": "https://api.github.com/repos/symfony/finder/zipball/9f1d1d883b79a91ef320c0c6e803494e042ef36e", + "reference": "9f1d1d883b79a91ef320c0c6e803494e042ef36e", "shasum": "" }, "require": { - "php": ">=7.2.5" + "php": ">=7.1.3" }, "type": "library", "autoload": { @@ -4675,7 +4599,7 @@ "description": "Symfony Finder Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.1.8" + "source": "https://github.com/symfony/finder/tree/v4.4.17" }, "funding": [ { @@ -4691,7 +4615,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-11-17T19:45:34+00:00" }, { "name": "symfony/flex", @@ -4762,16 +4686,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "0067e02d6ca55e284617777ed90cd086d3836457" + "reference": "3aea107a3cf50c351a492ab855caa6b2fd0f66a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/0067e02d6ca55e284617777ed90cd086d3836457", - "reference": "0067e02d6ca55e284617777ed90cd086d3836457", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/3aea107a3cf50c351a492ab855caa6b2fd0f66a2", + "reference": "3aea107a3cf50c351a492ab855caa6b2fd0f66a2", "shasum": "" }, "require": { @@ -4885,7 +4809,7 @@ "description": "Symfony FrameworkBundle", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v4.4.16" + "source": "https://github.com/symfony/framework-bundle/tree/v4.4.17" }, "funding": [ { @@ -4901,7 +4825,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-27T14:11:20+00:00" }, { "name": "symfony/http-client-contracts", @@ -4984,32 +4908,26 @@ }, { "name": "symfony/http-foundation", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "a2860ec970404b0233ab1e59e0568d3277d32b6f" + "reference": "9eeb37ec0ff3049c782ca67041648e28ddd75a94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/a2860ec970404b0233ab1e59e0568d3277d32b6f", - "reference": "a2860ec970404b0233ab1e59e0568d3277d32b6f", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/9eeb37ec0ff3049c782ca67041648e28ddd75a94", + "reference": "9eeb37ec0ff3049c782ca67041648e28ddd75a94", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/polyfill-mbstring": "~1.1", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.1.3", + "symfony/mime": "^4.3|^5.0", + "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { "predis/predis": "~1.0", - "symfony/cache": "^4.4|^5.0", - "symfony/expression-language": "^4.4|^5.0", - "symfony/mime": "^4.4|^5.0" - }, - "suggest": { - "symfony/mime": "To use the file extension guesser" + "symfony/expression-language": "^3.4|^4.0|^5.0" }, "type": "library", "autoload": { @@ -5037,7 +4955,7 @@ "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.1.8" + "source": "https://github.com/symfony/http-foundation/tree/v4.4.17" }, "funding": [ { @@ -5053,20 +4971,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-11-03T11:58:18+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "109b2a46e470a487ec8b0ffea4b0bb993aaf42ed" + "reference": "9f5605ee05406d8afa40dc4f2954c6a61de3a984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/109b2a46e470a487ec8b0ffea4b0bb993aaf42ed", - "reference": "109b2a46e470a487ec8b0ffea4b0bb993aaf42ed", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/9f5605ee05406d8afa40dc4f2954c6a61de3a984", + "reference": "9f5605ee05406d8afa40dc4f2954c6a61de3a984", "shasum": "" }, "require": { @@ -5141,7 +5059,7 @@ "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v4.4.16" + "source": "https://github.com/symfony/http-kernel/tree/v4.4.17" }, "funding": [ { @@ -5157,39 +5075,181 @@ "type": "tidelift" } ], - "time": "2020-10-28T05:50:56+00:00" + "time": "2020-11-29T09:23:08+00:00" }, { - "name": "symfony/monolog-bridge", - "version": "v5.1.8", + "name": "symfony/inflector", + "version": "v4.4.17", "source": { "type": "git", - "url": "https://github.com/symfony/monolog-bridge.git", - "reference": "0c507eddb704a3154b53f066cc0b587c4586c868" + "url": "https://github.com/symfony/inflector.git", + "reference": "a2ca868d7fc02800db67d1e1b6e5c83882d2aaa6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/0c507eddb704a3154b53f066cc0b587c4586c868", - "reference": "0c507eddb704a3154b53f066cc0b587c4586c868", + "url": "https://api.github.com/repos/symfony/inflector/zipball/a2ca868d7fc02800db67d1e1b6e5c83882d2aaa6", + "reference": "a2ca868d7fc02800db67d1e1b6e5c83882d2aaa6", "shasum": "" }, "require": { - "monolog/monolog": "^1.25.1|^2", - "php": ">=7.2.5", - "symfony/http-kernel": "^4.4|^5.0", + "php": ">=7.1.3", + "symfony/polyfill-ctype": "~1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Inflector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Inflector Component", + "homepage": "https://symfony.com", + "keywords": [ + "inflection", + "pluralize", + "singularize", + "string", + "symfony", + "words" + ], + "support": { + "source": "https://github.com/symfony/inflector/tree/v4.4.17" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-24T11:50:19+00:00" + }, + { + "name": "symfony/mime", + "version": "v4.4.17", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "4148b752f7e961931887410513ce3d9e267d25f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/4148b752f7e961931887410513ce3d9e267d25f2", + "reference": "4148b752f7e961931887410513ce3d9e267d25f2", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "symfony/mailer": "<4.4" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10", + "symfony/dependency-injection": "^3.4|^4.1|^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A library to manipulate MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v4.4.17" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-28T20:42:29+00:00" + }, + { + "name": "symfony/monolog-bridge", + "version": "v4.4.17", + "source": { + "type": "git", + "url": "https://github.com/symfony/monolog-bridge.git", + "reference": "0ac6b8e8c742ae75e8840feb1852fdf01d02d3ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/0ac6b8e8c742ae75e8840feb1852fdf01d02d3ed", + "reference": "0ac6b8e8c742ae75e8840feb1852fdf01d02d3ed", + "shasum": "" + }, + "require": { + "monolog/monolog": "^1.25.1", + "php": ">=7.1.3", + "symfony/http-kernel": "^4.3", "symfony/service-contracts": "^1.1|^2" }, "conflict": { - "symfony/console": "<4.4", - "symfony/http-foundation": "<4.4" + "symfony/console": "<3.4", + "symfony/http-foundation": "<3.4" }, "require-dev": { - "symfony/console": "^4.4|^5.0", + "symfony/console": "^3.4|^4.0|^5.0", "symfony/http-client": "^4.4|^5.0", - "symfony/mailer": "^4.4|^5.0", - "symfony/mime": "^4.4|^5.0", - "symfony/security-core": "^4.4|^5.0", - "symfony/var-dumper": "^4.4|^5.0" + "symfony/security-core": "^3.4|^4.0|^5.0", + "symfony/var-dumper": "^3.4|^4.0|^5.0" }, "suggest": { "symfony/console": "For the possibility to show log messages in console commands depending on verbosity settings.", @@ -5222,7 +5282,7 @@ "description": "Symfony Monolog Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/monolog-bridge/tree/v5.1.8" + "source": "https://github.com/symfony/monolog-bridge/tree/v4.4.17" }, "funding": [ { @@ -5238,7 +5298,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/monolog-bundle", @@ -5323,22 +5383,20 @@ }, { "name": "symfony/options-resolver", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "c6a02905e4ffc7a1498e8ee019db2b477cd1cc02" + "reference": "157a252222251310fe50c71012b4e72f01325850" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/c6a02905e4ffc7a1498e8ee019db2b477cd1cc02", - "reference": "c6a02905e4ffc7a1498e8ee019db2b477cd1cc02", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/157a252222251310fe50c71012b4e72f01325850", + "reference": "157a252222251310fe50c71012b4e72f01325850", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.1.3" }, "type": "library", "autoload": { @@ -5371,7 +5429,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.1.8" + "source": "https://github.com/symfony/options-resolver/tree/v4.4.17" }, "funding": [ { @@ -5387,7 +5445,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-10-24T11:50:19+00:00" }, { "name": "symfony/orm-pack", @@ -5437,21 +5495,23 @@ "time": "2020-08-31T10:20:18+00:00" }, { - "name": "symfony/polyfill-intl-grapheme", + "name": "symfony/polyfill-intl-idn", "version": "v1.20.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c" + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "3b75acd829741c768bc8b1f84eb33265e7cc5117" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", - "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/3b75acd829741c768bc8b1f84eb33265e7cc5117", + "reference": "3b75acd829741c768bc8b1f84eb33265e7cc5117", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" }, "suggest": { "ext-intl": "For best performance" @@ -5468,7 +5528,7 @@ }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + "Symfony\\Polyfill\\Intl\\Idn\\": "" }, "files": [ "bootstrap.php" @@ -5480,26 +5540,30 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for intl's grapheme_* functions", + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "grapheme", + "idn", "intl", "polyfill", "portable", "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.20.0" }, "funding": [ { @@ -5681,6 +5745,82 @@ ], "time": "2020-10-23T14:02:19+00:00" }, + { + "name": "symfony/polyfill-php72", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "cede45fcdfabdd6043b3592e83678e42ec69e930" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/cede45fcdfabdd6043b3592e83678e42ec69e930", + "reference": "cede45fcdfabdd6043b3592e83678e42ec69e930", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.20-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.20.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T14:02:19+00:00" + }, { "name": "symfony/polyfill-php73", "version": "v1.20.0", @@ -5890,34 +6030,33 @@ }, { "name": "symfony/property-info", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "fc15c51f829887b62a94a917ba793f51e80ea3e1" + "reference": "b355ee4a241094f72b8f96709a83619b8be064b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/fc15c51f829887b62a94a917ba793f51e80ea3e1", - "reference": "fc15c51f829887b62a94a917ba793f51e80ea3e1", + "url": "https://api.github.com/repos/symfony/property-info/zipball/b355ee4a241094f72b8f96709a83619b8be064b2", + "reference": "b355ee4a241094f72b8f96709a83619b8be064b2", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.15", - "symfony/string": "^5.1" + "php": ">=7.1.3", + "symfony/inflector": "^3.4|^4.0|^5.0" }, "conflict": { - "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2", "phpdocumentor/type-resolver": "<0.3.0", - "symfony/dependency-injection": "<4.4" + "symfony/dependency-injection": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.7", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/cache": "^4.4|^5.0", - "symfony/dependency-injection": "^4.4|^5.0", - "symfony/serializer": "^4.4|^5.0" + "symfony/cache": "^3.4|^4.0|^5.0", + "symfony/dependency-injection": "^3.4|^4.0|^5.0", + "symfony/serializer": "^3.4|^4.0|^5.0" }, "suggest": { "phpdocumentor/reflection-docblock": "To use the PHPDoc", @@ -5959,7 +6098,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v5.1.8" + "source": "https://github.com/symfony/property-info/tree/v4.4.17" }, "funding": [ { @@ -5975,7 +6114,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/psr-http-message-bridge", @@ -6061,36 +6200,34 @@ }, { "name": "symfony/routing", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "d6ceee2a37b61b41079005207bf37746d1bfe71f" + "reference": "08712c5dd5041c03e997e13892f45884faccd868" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/d6ceee2a37b61b41079005207bf37746d1bfe71f", - "reference": "d6ceee2a37b61b41079005207bf37746d1bfe71f", + "url": "https://api.github.com/repos/symfony/routing/zipball/08712c5dd5041c03e997e13892f45884faccd868", + "reference": "08712c5dd5041c03e997e13892f45884faccd868", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.1.3" }, "conflict": { - "symfony/config": "<5.0", - "symfony/dependency-injection": "<4.4", - "symfony/yaml": "<4.4" + "symfony/config": "<4.2", + "symfony/dependency-injection": "<3.4", + "symfony/yaml": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.2", "psr/log": "~1.0", - "symfony/config": "^5.0", - "symfony/dependency-injection": "^4.4|^5.0", - "symfony/expression-language": "^4.4|^5.0", - "symfony/http-foundation": "^4.4|^5.0", - "symfony/yaml": "^4.4|^5.0" + "symfony/config": "^4.2|^5.0", + "symfony/dependency-injection": "^3.4|^4.0|^5.0", + "symfony/expression-language": "^3.4|^4.0|^5.0", + "symfony/http-foundation": "^3.4|^4.0|^5.0", + "symfony/yaml": "^3.4|^4.0|^5.0" }, "suggest": { "doctrine/annotations": "For using the annotation loader", @@ -6131,7 +6268,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.1.8" + "source": "https://github.com/symfony/routing/tree/v4.4.17" }, "funding": [ { @@ -6147,7 +6284,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-11-24T13:31:32+00:00" }, { "name": "symfony/service-contracts", @@ -6230,20 +6367,20 @@ }, { "name": "symfony/stopwatch", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "3d9f57c89011f0266e6b1d469e5c0110513859d5" + "reference": "c7a594108ed01c89555c4e1bb123b4a54aee2595" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/3d9f57c89011f0266e6b1d469e5c0110513859d5", - "reference": "3d9f57c89011f0266e6b1d469e5c0110513859d5", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/c7a594108ed01c89555c4e1bb123b4a54aee2595", + "reference": "c7a594108ed01c89555c4e1bb123b4a54aee2595", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "symfony/service-contracts": "^1.0|^2" }, "type": "library", @@ -6272,7 +6409,7 @@ "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v5.1.8" + "source": "https://github.com/symfony/stopwatch/tree/v4.4.17" }, "funding": [ { @@ -6288,103 +6425,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" - }, - { - "name": "symfony/string", - "version": "v5.1.8", - "source": { - "type": "git", - "url": "https://github.com/symfony/string.git", - "reference": "a97573e960303db71be0dd8fda9be3bca5e0feea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/a97573e960303db71be0dd8fda9be3bca5e0feea", - "reference": "a97573e960303db71be0dd8fda9be3bca5e0feea", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" - }, - "require-dev": { - "symfony/error-handler": "^4.4|^5.0", - "symfony/http-client": "^4.4|^5.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\String\\": "" - }, - "files": [ - "Resources/functions.php" - ], - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony String component", - "homepage": "https://symfony.com", - "keywords": [ - "grapheme", - "i18n", - "string", - "unicode", - "utf-8", - "utf8" - ], - "support": { - "source": "https://github.com/symfony/string/tree/v5.1.8" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-10-31T22:44:29+00:00" }, { "name": "symfony/translation", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "73095716af79f610f3b6338b911357393fdd10ab" + "reference": "84821e6a14a637e817f25d11147388695b6f790a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/73095716af79f610f3b6338b911357393fdd10ab", - "reference": "73095716af79f610f3b6338b911357393fdd10ab", + "url": "https://api.github.com/repos/symfony/translation/zipball/84821e6a14a637e817f25d11147388695b6f790a", + "reference": "84821e6a14a637e817f25d11147388695b6f790a", "shasum": "" }, "require": { @@ -6443,7 +6497,7 @@ "description": "Symfony Translation Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v4.4.16" + "source": "https://github.com/symfony/translation/tree/v4.4.17" }, "funding": [ { @@ -6459,7 +6513,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-27T06:35:49+00:00" }, { "name": "symfony/translation-contracts", @@ -6541,16 +6595,16 @@ }, { "name": "symfony/twig-bridge", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "841c46c963891122429cfa1b56f06aeef9c1c010" + "reference": "7d119d2cffb4d11a42690205c2427625c80a060e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/841c46c963891122429cfa1b56f06aeef9c1c010", - "reference": "841c46c963891122429cfa1b56f06aeef9c1c010", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/7d119d2cffb4d11a42690205c2427625c80a060e", + "reference": "7d119d2cffb4d11a42690205c2427625c80a060e", "shasum": "" }, "require": { @@ -6573,7 +6627,7 @@ "symfony/error-handler": "^4.4|^5.0", "symfony/expression-language": "^3.4|^4.0|^5.0", "symfony/finder": "^3.4|^4.0|^5.0", - "symfony/form": "^4.3.5", + "symfony/form": "^4.4.17", "symfony/http-foundation": "^4.3|^5.0", "symfony/http-kernel": "^4.4", "symfony/mime": "^4.3|^5.0", @@ -6636,7 +6690,7 @@ "description": "Symfony Twig Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bridge/tree/v4.4.16" + "source": "https://github.com/symfony/twig-bridge/tree/v4.4.17" }, "funding": [ { @@ -6652,11 +6706,11 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-17T16:25:11+00:00" }, { "name": "symfony/twig-bundle", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", @@ -6723,7 +6777,7 @@ "description": "Symfony TwigBundle", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bundle/tree/v4.4.16" + "source": "https://github.com/symfony/twig-bundle/tree/v4.4.17" }, "funding": [ { @@ -6743,32 +6797,33 @@ }, { "name": "symfony/var-dumper", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "4e13f3fcefb1fcaaa5efb5403581406f4e840b9a" + "reference": "65c6f1e848cda840ef7278686c8e30a7cc353c93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/4e13f3fcefb1fcaaa5efb5403581406f4e840b9a", - "reference": "4e13f3fcefb1fcaaa5efb5403581406f4e840b9a", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/65c6f1e848cda840ef7278686c8e30a7cc353c93", + "reference": "65c6f1e848cda840ef7278686c8e30a7cc353c93", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php72": "~1.5", "symfony/polyfill-php80": "^1.15" }, "conflict": { - "phpunit/phpunit": "<5.4.3", - "symfony/console": "<4.4" + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", + "symfony/console": "<3.4" }, "require-dev": { "ext-iconv": "*", - "symfony/console": "^4.4|^5.0", + "symfony/console": "^3.4|^4.0|^5.0", "symfony/process": "^4.4|^5.0", - "twig/twig": "^2.4|^3.0" + "twig/twig": "^1.34|^2.4|^3.0" }, "suggest": { "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", @@ -6811,7 +6866,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.1.8" + "source": "https://github.com/symfony/var-dumper/tree/v4.4.17" }, "funding": [ { @@ -6827,25 +6882,24 @@ "type": "tidelift" } ], - "time": "2020-10-27T10:11:13+00:00" + "time": "2020-11-24T09:55:37+00:00" }, { "name": "symfony/var-exporter", - "version": "v5.1.8", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "b4048bfc6248413592462c029381bdb2f7b6525f" + "reference": "f04b7d187b120e0a44c18a2d479c2dd0abe99d9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/b4048bfc6248413592462c029381bdb2f7b6525f", - "reference": "b4048bfc6248413592462c029381bdb2f7b6525f", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/f04b7d187b120e0a44c18a2d479c2dd0abe99d9c", + "reference": "f04b7d187b120e0a44c18a2d479c2dd0abe99d9c", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.15" + "php": ">=7.1.3" }, "require-dev": { "symfony/var-dumper": "^4.4.9|^5.0.9" @@ -6884,7 +6938,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v5.1.8" + "source": "https://github.com/symfony/var-exporter/tree/v4.4.17" }, "funding": [ { @@ -6900,48 +6954,43 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/web-profiler-bundle", - "version": "v5.0.11", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "3b6dbd2cc76275e117d5c55923c7f511ead22bae" + "reference": "cd980f0df4ae7696d18fd908503fc61ae67ac48d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/3b6dbd2cc76275e117d5c55923c7f511ead22bae", - "reference": "3b6dbd2cc76275e117d5c55923c7f511ead22bae", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/cd980f0df4ae7696d18fd908503fc61ae67ac48d", + "reference": "cd980f0df4ae7696d18fd908503fc61ae67ac48d", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/config": "^4.4|^5.0", + "php": ">=7.1.3", + "symfony/config": "^4.2|^5.0", "symfony/framework-bundle": "^4.4|^5.0", - "symfony/http-kernel": "^4.4|^5.0", - "symfony/routing": "^4.4|^5.0", - "symfony/twig-bundle": "^4.4|^5.0", - "twig/twig": "^2.10|^3.0" + "symfony/http-kernel": "^4.4", + "symfony/routing": "^4.3|^5.0", + "symfony/twig-bundle": "^4.2|^5.0", + "twig/twig": "^1.41|^2.10|^3.0" }, "conflict": { - "symfony/form": "<4.4", - "symfony/messenger": "<4.4" + "symfony/form": "<4.3", + "symfony/messenger": "<4.2" }, "require-dev": { - "symfony/browser-kit": "^4.4|^5.0", - "symfony/console": "^4.4|^5.0", - "symfony/css-selector": "^4.4|^5.0", - "symfony/dependency-injection": "^4.4|^5.0", - "symfony/stopwatch": "^4.4|^5.0" + "symfony/browser-kit": "^4.3|^5.0", + "symfony/console": "^4.3|^5.0", + "symfony/css-selector": "^3.4|^4.0|^5.0", + "symfony/dependency-injection": "^3.4|^4.0|^5.0", + "symfony/stopwatch": "^3.4|^4.0|^5.0" }, "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, "autoload": { "psr-4": { "Symfony\\Bundle\\WebProfilerBundle\\": "" @@ -6967,7 +7016,7 @@ "description": "Symfony WebProfilerBundle", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/web-profiler-bundle/tree/v5.0.11" + "source": "https://github.com/symfony/web-profiler-bundle/tree/v4.4.17" }, "funding": [ { @@ -6983,20 +7032,20 @@ "type": "tidelift" } ], - "time": "2020-07-23T08:36:09+00:00" + "time": "2020-10-28T20:42:29+00:00" }, { "name": "symfony/yaml", - "version": "v4.4.16", + "version": "v4.4.17", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "543cb4dbd45ed803f08a9a65f27fb149b5dd20c2" + "reference": "7531361cf38e4816821b4a12a42542b3c6143ad1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/543cb4dbd45ed803f08a9a65f27fb149b5dd20c2", - "reference": "543cb4dbd45ed803f08a9a65f27fb149b5dd20c2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/7531361cf38e4816821b4a12a42542b3c6143ad1", + "reference": "7531361cf38e4816821b4a12a42542b3c6143ad1", "shasum": "" }, "require": { @@ -7038,7 +7087,7 @@ "description": "Symfony Yaml Component", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v4.4.16" + "source": "https://github.com/symfony/yaml/tree/v4.4.17" }, "funding": [ { @@ -7054,30 +7103,30 @@ "type": "tidelift" } ], - "time": "2020-10-24T11:50:19+00:00" + "time": "2020-11-24T12:28:30+00:00" }, { "name": "tightenco/collect", - "version": "v5.6.33", + "version": "v5.8.38", "source": { "type": "git", "url": "https://github.com/tighten/collect.git", - "reference": "d7381736dca44ac17d0805a25191b094e5a22446" + "reference": "c93a7039e6207ad533a09109838fe80933fcc72c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tighten/collect/zipball/d7381736dca44ac17d0805a25191b094e5a22446", - "reference": "d7381736dca44ac17d0805a25191b094e5a22446", + "url": "https://api.github.com/repos/tighten/collect/zipball/c93a7039e6207ad533a09109838fe80933fcc72c", + "reference": "c93a7039e6207ad533a09109838fe80933fcc72c", "shasum": "" }, "require": { - "php": ">=7.1.3", - "symfony/var-dumper": ">=3.1.10" + "php": "^7.1.3", + "symfony/var-dumper": ">=3.4 <5" }, "require-dev": { - "mockery/mockery": "~1.0", - "nesbot/carbon": "~1.20", - "phpunit/phpunit": "~7.0" + "mockery/mockery": "^1.0", + "nesbot/carbon": "^1.26.3", + "phpunit/phpunit": "^7.0" }, "type": "library", "autoload": { @@ -7106,9 +7155,9 @@ ], "support": { "issues": "https://github.com/tighten/collect/issues", - "source": "https://github.com/tighten/collect/tree/v5.6.33" + "source": "https://github.com/tighten/collect/tree/v5.8.38" }, - "time": "2018-08-09T16:56:26+00:00" + "time": "2019-09-17T18:57:01+00:00" }, { "name": "twig/twig", diff --git a/api/config/bootstrap.php b/api/config/bootstrap.php new file mode 100644 index 0000000..55560fb --- /dev/null +++ b/api/config/bootstrap.php @@ -0,0 +1,23 @@ +=1.2) +if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) { + (new Dotenv(false))->populate($env); +} else { + // load all the .env files + (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); +} + +$_SERVER += $_ENV; +$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev'; +$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV']; +$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0'; diff --git a/api/config/packages/cache.yaml b/api/config/packages/cache.yaml new file mode 100644 index 0000000..6899b72 --- /dev/null +++ b/api/config/packages/cache.yaml @@ -0,0 +1,19 @@ +framework: + cache: + # Unique name of your app: used to compute stable namespaces for cache keys. + #prefix_seed: your_vendor_name/app_name + + # The "app" cache stores to the filesystem by default. + # The data in this cache should persist between deploys. + # Other options include: + + # Redis + #app: cache.adapter.redis + #default_redis_provider: redis://localhost + + # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues) + #app: cache.adapter.apcu + + # Namespaced pools use the above "app" backend by default + #pools: + #my.dedicated.cache: null diff --git a/api/config/packages/doctrine.yaml b/api/config/packages/doctrine.yaml index ca2f098..42dc149 100644 --- a/api/config/packages/doctrine.yaml +++ b/api/config/packages/doctrine.yaml @@ -5,14 +5,13 @@ doctrine: dbal: driver: 'pdo_sqlite' url: '%env(resolve:DATABASE_URL)%' - logging: true - profiling: true + logging: '%kernel.debug%' + profiling: '%kernel.debug%' types: datetime: App\Doctrine\CarbonDateTimeType - orm: - auto_generate_proxy_classes: '%kernel.debug%' - naming_strategy: doctrine.orm.naming_strategy.underscore + auto_generate_proxy_classes: true + naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware auto_mapping: true mappings: App: @@ -20,4 +19,4 @@ doctrine: type: annotation dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' - alias: Entity + alias: App diff --git a/api/config/packages/doctrine_migrations.yaml b/api/config/packages/doctrine_migrations.yaml index 70959a6..263db11 100644 --- a/api/config/packages/doctrine_migrations.yaml +++ b/api/config/packages/doctrine_migrations.yaml @@ -1,3 +1,3 @@ doctrine_migrations: - dir_name: '%kernel.project_dir%/src/Migrations' - namespace: DoctrineMigrations + migrations_paths: + 'DoctrineMigrations': '%kernel.project_dir%/migrations' diff --git a/api/config/packages/framework.yaml b/api/config/packages/framework.yaml index 8b24418..aaed681 100644 --- a/api/config/packages/framework.yaml +++ b/api/config/packages/framework.yaml @@ -1,30 +1,6 @@ framework: secret: '%env(APP_SECRET)%' - #default_locale: en - #csrf_protection: true - #http_method_override: true + csrf_protection: false - # Enables session support. Note that the session will ONLY be started if you read or write from it. - # Remove or comment this section to explicitly disable session support. - session: - handler_id: ~ - - #esi: true - #fragments: true php_errors: log: true - - cache: - # Put the unique name of your app here: the prefix seed - # is used to compute stable namespaces for cache keys. - #prefix_seed: your_vendor_name/app_name - - # The app cache caches to the filesystem by default. - # Other options include: - - # Redis - #app: cache.adapter.redis - #default_redis_provider: redis://localhost - - # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues) - #app: cache.adapter.apcu diff --git a/api/config/packages/prod/doctrine.yaml b/api/config/packages/prod/doctrine.yaml index 2f16f0f..084f59a 100644 --- a/api/config/packages/prod/doctrine.yaml +++ b/api/config/packages/prod/doctrine.yaml @@ -1,26 +1,15 @@ doctrine: orm: + auto_generate_proxy_classes: false metadata_cache_driver: - type: service - id: doctrine.system_cache_provider + type: pool + pool: doctrine.system_cache_pool query_cache_driver: - type: service - id: doctrine.system_cache_provider + type: pool + pool: doctrine.system_cache_pool result_cache_driver: - type: service - id: doctrine.result_cache_provider - -services: - doctrine.result_cache_provider: - class: Symfony\Component\Cache\DoctrineProvider - public: false - arguments: - - '@doctrine.result_cache_pool' - doctrine.system_cache_provider: - class: Symfony\Component\Cache\DoctrineProvider - public: false - arguments: - - '@doctrine.system_cache_pool' + type: pool + pool: doctrine.result_cache_pool framework: cache: diff --git a/api/config/packages/test/twig.yaml b/api/config/packages/test/twig.yaml new file mode 100644 index 0000000..8c6e0b4 --- /dev/null +++ b/api/config/packages/test/twig.yaml @@ -0,0 +1,2 @@ +twig: + strict_variables: true diff --git a/api/config/packages/twig.yaml b/api/config/packages/twig.yaml index 3b315dc..6403e6a 100644 --- a/api/config/packages/twig.yaml +++ b/api/config/packages/twig.yaml @@ -1,4 +1,5 @@ twig: - paths: ['%kernel.project_dir%/templates'] + default_path: '%kernel.project_dir%/templates' debug: '%kernel.debug%' strict_variables: '%kernel.debug%' + exception_controller: null diff --git a/api/config/preload.php b/api/config/preload.php new file mode 100644 index 0000000..064bdcd --- /dev/null +++ b/api/config/preload.php @@ -0,0 +1,9 @@ +> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \ - echo "xdebug.discover_client_host = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; +RUN echo "xdebug.mode=debug" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini && \ + echo "xdebug.discover_client_host=On" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini; RUN apk del --purge autoconf g++ make @@ -26,7 +26,7 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Timezone -RUN ln -snf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime && +RUN ln -snf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime && \ echo "date.timezone = Europe/Warsaw" >> /usr/local/etc/php/conf.d/datetime.ini; WORKDIR /var/www diff --git a/api/src/Controller/.gitignore b/api/migrations/.gitignore similarity index 100% rename from api/src/Controller/.gitignore rename to api/migrations/.gitignore diff --git a/api/src/Migrations/Version20180907212032.php b/api/migrations/Version20180907212032.php similarity index 100% rename from api/src/Migrations/Version20180907212032.php rename to api/migrations/Version20180907212032.php diff --git a/api/src/Migrations/Version20181027124203.php b/api/migrations/Version20181027124203.php similarity index 100% rename from api/src/Migrations/Version20181027124203.php rename to api/migrations/Version20181027124203.php diff --git a/api/src/Migrations/Version20190111212909.php b/api/migrations/Version20190111212909.php similarity index 100% rename from api/src/Migrations/Version20190111212909.php rename to api/migrations/Version20190111212909.php diff --git a/api/src/Migrations/Version20200103160747.php b/api/migrations/Version20200103160747.php similarity index 100% rename from api/src/Migrations/Version20200103160747.php rename to api/migrations/Version20200103160747.php diff --git a/api/src/Migrations/Version20200103170517.php b/api/migrations/Version20200103170517.php similarity index 100% rename from api/src/Migrations/Version20200103170517.php rename to api/migrations/Version20200103170517.php diff --git a/api/src/Migrations/Version20200131151757.php b/api/migrations/Version20200131151757.php similarity index 100% rename from api/src/Migrations/Version20200131151757.php rename to api/migrations/Version20200131151757.php diff --git a/api/src/Migrations/Version20200206183956.php b/api/migrations/Version20200206183956.php similarity index 100% rename from api/src/Migrations/Version20200206183956.php rename to api/migrations/Version20200206183956.php diff --git a/api/src/Migrations/Version20200314112552.php b/api/migrations/Version20200314112552.php similarity index 100% rename from api/src/Migrations/Version20200314112552.php rename to api/migrations/Version20200314112552.php diff --git a/api/public/index.php b/api/public/index.php index 980d765..d0b6e02 100644 --- a/api/public/index.php +++ b/api/public/index.php @@ -1,39 +1,26 @@ load(__DIR__.'/../.env'); -} - -$env = $_SERVER['APP_ENV'] ?? 'dev'; -$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); - -if ($debug) { +if ($_SERVER['APP_DEBUG']) { umask(0000); Debug::enable(); } if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) { - Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST); + Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO); } if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) { - Request::setTrustedHosts(explode(',', $trustedHosts)); + Request::setTrustedHosts([$trustedHosts]); } -\Doctrine\Common\Annotations\AnnotationReader::addGlobalIgnoredName('alias'); -$kernel = new Kernel($env, $debug); +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); diff --git a/api/src/Functions/index.php b/api/src/Functions/index.php index a0028ce..5215295 100644 --- a/api/src/Functions/index.php +++ b/api/src/Functions/index.php @@ -1,3 +1,3 @@ getProjectDir().'/var/cache/'.$this->environment; - } - - public function getLogDir() - { - return $this->getProjectDir().'/var/log'; - } - - public function registerBundles() + public function registerBundles(): iterable { $contents = require $this->getProjectDir().'/config/bundles.php'; foreach ($contents as $class => $envs) { - if (isset($envs['all']) || isset($envs[$this->environment])) { + if ($envs[$this->environment] ?? $envs['all'] ?? false) { yield new $class(); } } } - protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) + public function getProjectDir(): string + { + return \dirname(__DIR__); + } + + protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void { $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); - // Feel free to remove the "container.autowiring.strict_mode" parameter - // if you are using symfony/dependency-injection 4.0+ as it's the default behavior - $container->setParameter('container.autowiring.strict_mode', true); - $container->setParameter('container.dumper.inline_class_loader', true); + $container->setParameter('container.dumper.inline_class_loader', \PHP_VERSION_ID < 70400 || $this->debug); + $container->setParameter('container.dumper.inline_factories', true); $confDir = $this->getProjectDir().'/config'; $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); - $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); + $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob'); $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); - - if (!file_exists($this->getCacheDir().'/proxy')) { - mkdir($this->getCacheDir().'/proxy'); - } } - protected function configureRoutes(RouteCollectionBuilder $routes) + protected function configureRoutes(RouteCollectionBuilder $routes): void { $confDir = $this->getProjectDir().'/config'; + $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); - $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); } } diff --git a/api/src/Migrations/.gitignore b/api/src/Migrations/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/api/symfony.lock b/api/symfony.lock index c2bc392..a73e0f8 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -42,25 +42,35 @@ "version": "v2.8.0" }, "doctrine/doctrine-bundle": { - "version": "1.6", + "version": "2.0", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.6", - "ref": "ae205d5114e719deb64d2110f56ef910787d1e04" - } + "version": "2.0", + "ref": "368794356c1fb634e58b38ad2addb36933f2e73e" + }, + "files": [ + "config/packages/doctrine.yaml", + "config/packages/prod/doctrine.yaml", + "src/Entity/.gitignore", + "src/Repository/.gitignore" + ] }, "doctrine/doctrine-cache-bundle": { "version": "1.3.3" }, "doctrine/doctrine-migrations-bundle": { - "version": "1.2", + "version": "2.2", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.2", - "ref": "c1431086fec31f17fbcfe6d6d7e92059458facc1" - } + "version": "2.2", + "ref": "baaa439e3e3179e69e3da84b671f0a3e4a2f56ad" + }, + "files": [ + "config/packages/doctrine_migrations.yaml", + "migrations/.gitignore" + ] }, "doctrine/event-manager": { "version": "v1.0.0" @@ -271,9 +281,6 @@ "symfony/dependency-injection": { "version": "v4.1.3" }, - "symfony/deprecation-contracts": { - "version": "v2.2.0" - }, "symfony/doctrine-bridge": { "version": "v4.1.4" }, @@ -301,17 +308,32 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "1.0", - "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115" - } + "ref": "c0eeb50665f0f77226616b6038a9b06c03752d8e" + }, + "files": [ + ".env" + ] }, "symfony/framework-bundle": { - "version": "3.3", + "version": "4.4", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "3.3", - "ref": "87c585d24de9f43bca80ebcfd5cf5cb39445d95f" - } + "version": "4.4", + "ref": "df1f2fe60b8fbb5cf7e26a7af19445c128a13b90" + }, + "files": [ + "config/bootstrap.php", + "config/packages/cache.yaml", + "config/packages/framework.yaml", + "config/packages/test/framework.yaml", + "config/preload.php", + "config/routes/dev/framework.yaml", + "config/services.yaml", + "public/index.php", + "src/Controller/.gitignore", + "src/Kernel.php" + ] }, "symfony/http-client-contracts": { "version": "v2.3.1" @@ -346,9 +368,6 @@ "symfony/orm-pack": { "version": "v1.0.5" }, - "symfony/polyfill-intl-grapheme": { - "version": "v1.20.0" - }, "symfony/polyfill-intl-idn": { "version": "v1.13.1" }, @@ -358,6 +377,9 @@ "symfony/polyfill-mbstring": { "version": "v1.9.0" }, + "symfony/polyfill-php72": { + "version": "v1.20.0" + }, "symfony/polyfill-php73": { "version": "v1.13.1" }, @@ -397,9 +419,6 @@ "symfony/stopwatch": { "version": "v4.1.12" }, - "symfony/string": { - "version": "v5.1.8" - }, "symfony/translation": { "version": "3.3", "recipe": { @@ -416,13 +435,18 @@ "version": "v4.1.3" }, "symfony/twig-bundle": { - "version": "3.3", + "version": "4.4", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "3.3", - "ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f" - } + "version": "4.4", + "ref": "15a41bbd66a1323d09824a189b485c126bbefa51" + }, + "files": [ + "config/packages/test/twig.yaml", + "config/packages/twig.yaml", + "templates/base.html.twig" + ] }, "symfony/var-dumper": { "version": "v4.1.3"