diff --git a/.githooks/install_hooks.sh b/.githooks/install_hooks.sh deleted file mode 100755 index 6187077..0000000 --- a/.githooks/install_hooks.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env php -writeln(); - $this->writeln('Checking commit requirements', 0); - $this->writeln(); - - if ($this->isRebase()) { - echo 'Not on branch' . PHP_EOL; - - return 0; - } - - $this->runPhpLint($this->getCommittedFileList()); - $this->runPhpCsFixer($this->getCommittedFileList()); - - if ($this->error) { - $this->writeln("If you are ABSOLUTELY sure your code is correct, you can use 'git commit --no-verify' to bypass this validation", 0); - } - - exit((int) $this->error); - } - - /** - * @param string $output - * @param int $level - */ - private function writeln($output = '', $level = 1) - { - $this->write($output, $level); - echo PHP_EOL; - } - - /** - * @param string $output - * @param int $level - */ - private function write($output = '', $level = 1) - { - $spaces = $level * 3; - - echo str_pad($output, strlen($output) + $spaces, ' ', STR_PAD_LEFT); - } - - /** - * @return bool - */ - private function isRebase() - { - $output = []; - exec('git symbolic-ref --short -q HEAD', $output); - - return empty($output); - } - - /** - * @param string $extension - * @return string[] - */ - private function getCommittedFileList($extension = 'php') - { - exec("git diff --name-only --diff-filter=ACMRTUXB \"HEAD\" | grep -e '\." . $extension . "$'", $fileList); - - return $fileList; - } - - /** - * @param array $fileList - */ - private function runPhpLint(array $fileList) - { - $this->writeln('# Checking php syntax'); - $this->writeln('> php -l'); - - foreach ($fileList as $file) { - exec('php -l ' . escapeshellarg($file) . ' 2> /dev/null', $output, $return); - if ($return !== 0) { - $this->writeln('- ' . $output[1], 2); - $this->error = true; - } - } - - $this->writeln(); - } - - /** - * @param array $fileList - */ - private function runPhpCsFixer(array $fileList) - { - $this->writeln('# Checking php code style'); - $this->writeln('> php-cs-fixer fix -v --no-ansi --dry-run'); - - if (!$this->isPHPCSFixerAvailable()) { - $this->error = true; - $this->writeln('- php-cs-fixer is NOT installed. Please install composer with dev dependencies.', 2); - $this->writeln(); - - return; - } - - $fixes = []; - foreach ($fileList as $file) { - exec('./vendor/bin/php-cs-fixer fix -v --no-ansi --dry-run ' . escapeshellarg($file) . ' 2>&1', $output, $return); - - if ($return !== 0) { - $this->writeln('- ' . preg_replace('#^(\s+)?\d\)\s#', '', $output[3]), 2); - $fixes[] = './vendor/bin/php-cs-fixer fix -v ' . escapeshellarg($file); - $this->error = true; - } - } - - if (!empty($fixes)) { - $this->writeln(); - $this->writeln('Help:', 2); - foreach ($fixes as $fix) { - $this->writeln($fix, 3); - } - } - - $this->writeln(); - } - - /** - * @return bool - */ - private function isPHPCSFixerAvailable() - { - $output = []; - $return = 0; - exec('command -v ./vendor/bin/php-cs-fixer >/dev/null 2>&1', $output, $return); - - return !(bool) $return; - } -} - -$checks = new PreCommitChecks(); -$checks->run(); diff --git a/README.md b/README.md index 6f3f462..825760e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Based on Symfony 4.1 ```sh $ composer install ``` -- create `.env file with `cp .env.dist .env`` +- create `.env` file with `cp .env.dist .env` - make adjustments according to your setup (e.g. DB connection) ```sh $ php bin/console doctrine:database:create diff --git a/bin/pre-commit.sh b/bin/pre-commit.sh new file mode 100755 index 0000000..541f2e8 --- /dev/null +++ b/bin/pre-commit.sh @@ -0,0 +1,95 @@ +#!/bin/sh + +PROJECT=`php -r "echo dirname(dirname(realpath('$0')));"` +STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.*` + +# Determine if a file list is passed +if [ "$#" -eq 1 ] +then + oIFS=$IFS + IFS=' + ' + SFILES="$1" + IFS=$oIFS +fi +SFILES=${SFILES:-$STAGED_FILES_CMD} + +for FILE in $SFILES + do + FILES="$FILES $PROJECT/$FILE" + done + +if [ "$FILES" != "" ] +then + echo "fix code style and update the commit" + vendor/bin/php-cs-fixer fix --config=.php_cs.dist --quiet --allow-risky=yes -vv $FILES + git add $FILES +fi + +if [ "$FILES" != "" ] +then + echo "Static code analysis..." + vendor/bin/phpstan analyse src --level 7 --no-progress + if [ $? != 0 ] + then + echo "Static code analysis failed. Fix the error before commit." + exit 1 + fi +fi + +if [ "$FILES" != "" ] +then + echo "Checking for insecure libs..." + vendor/bin/security-checker security:check + if [ $? != 0 ] + then + echo "Insecure libraries found. Fix the error before commit." + exit 1 + fi +fi + +if [ "$FILES" != "" ] +then + echo "Linting Twig templates..." + bin/console lint:twig templates + if [ $? != 0 ] + then + echo "Twig linting failed. Fix the error before commit." + exit 1 + fi +fi + +if [ "$FILES" != "" ] +then + echo "Linting Yaml files..." + bin/console lint:yaml config + if [ $? != 0 ] + then + echo "Yaml linting failed. Fix the error before commit." + exit 1 + fi +fi + +if [ "$FILES" != "" ] +then + echo "Linting PHP files..." + vendor/bin/parallel-lint src + if [ $? != 0 ] + then + echo "PHP linting failed. Fix the error before commit." + exit 1 + fi +fi + +if [ "$FILES" != "" ] +then + echo "Checking for var_dump()s..." + vendor/bin/var-dump-check src --doctrine --symfony + if [ $? != 0 ] + then + echo "Debug outputs found. Fix the error before commit." + exit 1 + fi +fi + +exit $? diff --git a/composer.json b/composer.json index a4e7729..2723242 100644 --- a/composer.json +++ b/composer.json @@ -7,24 +7,41 @@ "require": { "php": "^7.1.3", "ext-iconv": "*", + "doctrine/collections": "1.5.0", + "doctrine/doctrine-bundle": "1.10.0", + "doctrine/doctrine-cache-bundle": "1.3.5", + "doctrine/doctrine-migrations-bundle": "1.3.2", + "doctrine/orm": "2.6.3", + "knplabs/knp-components": "1.3.10", "knplabs/knp-paginator-bundle": "2.8.0", - "sensio/framework-extra-bundle": "5.2.0", - "symfony/apache-pack": "^1.0", - "symfony/asset": "4.1.4", - "symfony/console": "4.1.4", - "symfony/dotenv": "4.1.4", - "symfony/flex": "1.1.1", - "symfony/form": "4.1.4", - "symfony/framework-bundle": "4.1.4", + "sensio/framework-extra-bundle": "5.2.4", + "symfony/apache-pack": "1.0.1", + "symfony/asset": "4.2.1", + "symfony/config": "4.2.1", + "symfony/console": "4.2.1", + "symfony/dependency-injection": "4.2.1", + "symfony/doctrine-bridge": "4.2.1", + "symfony/dotenv": "4.2.1", + "symfony/flex": "1.1.8", + "symfony/form": "4.2.1", + "symfony/framework-bundle": "4.2.1", + "symfony/http-foundation": "4.2.1", + "symfony/http-kernel": "4.2.1", "symfony/orm-pack": "1.0.5", - "symfony/translation": "4.1.4", - "symfony/twig-bundle": "4.1.4", - "symfony/validator": "4.1.4", - "symfony/web-server-bundle": "4.1.4", - "symfony/yaml": "4.1.4" + "symfony/routing": "4.2.1", + "symfony/translation": "4.2.1", + "symfony/twig-bundle": "4.2.1", + "symfony/validator": "4.2.1", + "symfony/web-server-bundle": "4.2.1", + "symfony/yaml": "4.2.1" + }, "require-dev": { - "friendsofphp/php-cs-fixer": "2.13.0" + "friendsofphp/php-cs-fixer": "2.13.1", + "jakub-onderka/php-parallel-lint": "1.0.0", + "jakub-onderka/php-var-dump-check": "0.3.0", + "phpstan/phpstan": "0.10.6", + "sensiolabs/security-checker": "^5.0" }, "config": { "preferred-install": { @@ -37,11 +54,6 @@ "App\\": "src/" } }, - "autoload-dev": { - "psr-4": { - "App\\Tests\\": "tests/" - } - }, "replace": { "symfony/polyfill-iconv": "*", "symfony/polyfill-php71": "*", @@ -51,11 +63,12 @@ "scripts": { "auto-scripts": { "cache:clear": "symfony-cmd", - "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" + "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd", + "security-checker security:check": "script" }, "post-install-cmd": [ "@auto-scripts", - "./.githooks/install_hooks.sh" + "ln -sf ../../bin/pre-commit.sh .git/hooks/pre-commit" ], "post-update-cmd": [ "@auto-scripts" diff --git a/composer.lock b/composer.lock index cfb8f10..70f196e 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": "b3b41a9b97bad3f9a8c7ac02a09f4481", + "content-hash": "9381fd4b18c923778d4a8947ae2c88d5", "packages": [ { "name": "doctrine/annotations", @@ -218,16 +218,16 @@ }, { "name": "doctrine/common", - "version": "v2.9.0", + "version": "v2.10.0", "source": { "type": "git", "url": "https://github.com/doctrine/common.git", - "reference": "a210246d286c77d2b89040f8691ba7b3a713d2c1" + "reference": "30e33f60f64deec87df728c02b107f82cdafad9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/a210246d286c77d2b89040f8691ba7b3a713d2c1", - "reference": "a210246d286c77d2b89040f8691ba7b3a713d2c1", + "url": "https://api.github.com/repos/doctrine/common/zipball/30e33f60f64deec87df728c02b107f82cdafad9d", + "reference": "30e33f60f64deec87df728c02b107f82cdafad9d", "shasum": "" }, "require": { @@ -237,7 +237,7 @@ "doctrine/event-manager": "^1.0", "doctrine/inflector": "^1.0", "doctrine/lexer": "^1.0", - "doctrine/persistence": "^1.0", + "doctrine/persistence": "^1.1", "doctrine/reflection": "^1.0", "php": "^7.1" }, @@ -250,7 +250,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.9.x-dev" + "dev-master": "2.10.x-dev" } }, "autoload": { @@ -288,29 +288,27 @@ "email": "ocramius@gmail.com" } ], - "description": "Common Library for Doctrine projects", - "homepage": "https://www.doctrine-project.org", + "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.", + "homepage": "https://www.doctrine-project.org/projects/common.html", "keywords": [ - "annotations", - "collections", - "eventmanager", - "persistence", - "spl" + "common", + "doctrine", + "php" ], - "time": "2018-07-12T21:16:12+00:00" + "time": "2018-11-21T01:24:55+00:00" }, { "name": "doctrine/dbal", - "version": "v2.8.0", + "version": "v2.9.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "5140a64c08b4b607b9bedaae0cedd26f04a0e621" + "reference": "ec74d6e300d78fbc896669c3ca57ef9719adc9c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/5140a64c08b4b607b9bedaae0cedd26f04a0e621", - "reference": "5140a64c08b4b607b9bedaae0cedd26f04a0e621", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/ec74d6e300d78fbc896669c3ca57ef9719adc9c6", + "reference": "ec74d6e300d78fbc896669c3ca57ef9719adc9c6", "shasum": "" }, "require": { @@ -320,11 +318,10 @@ "php": "^7.1" }, "require-dev": { - "doctrine/coding-standard": "^4.0", + "doctrine/coding-standard": "^5.0", "jetbrains/phpstorm-stubs": "^2018.1.2", "phpstan/phpstan": "^0.10.1", - "phpunit/phpunit": "^7.1.2", - "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", + "phpunit/phpunit": "^7.4", "symfony/console": "^2.0.5|^3.0|^4.0", "symfony/phpunit-bridge": "^3.4.5|^4.0.5" }, @@ -337,13 +334,13 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8.x-dev", + "dev-master": "2.9.x-dev", "dev-develop": "3.0.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\DBAL\\": "lib/" + "psr-4": { + "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" } }, "notification-url": "https://packagist.org/downloads/", @@ -368,28 +365,32 @@ "email": "jonwage@gmail.com" } ], - "description": "Database Abstraction Layer", - "homepage": "http://www.doctrine-project.org", + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", "keywords": [ + "abstraction", "database", "dbal", + "mysql", "persistence", + "pgsql", + "php", "queryobject" ], - "time": "2018-07-13T03:16:35+00:00" + "time": "2018-12-14T04:51:13+00:00" }, { "name": "doctrine/doctrine-bundle", - "version": "1.9.1", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "703fad32e4c8cbe609caf45a71a1d4266c830f0f" + "reference": "82d2c63cd09acbde2332f55d9aa7b28aefe4983d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/703fad32e4c8cbe609caf45a71a1d4266c830f0f", - "reference": "703fad32e4c8cbe609caf45a71a1d4266c830f0f", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/82d2c63cd09acbde2332f55d9aa7b28aefe4983d", + "reference": "82d2c63cd09acbde2332f55d9aa7b28aefe4983d", "shasum": "" }, "require": { @@ -407,8 +408,8 @@ }, "require-dev": { "doctrine/orm": "~2.4", + "php-coveralls/php-coveralls": "^2.1", "phpunit/phpunit": "^4.8.36|^5.7|^6.4", - "satooshi/php-coveralls": "^1.0", "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", "symfony/property-info": "~2.8|~3.0|~4.0", "symfony/validator": "~2.7|~3.0|~4.0", @@ -423,7 +424,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.8.x-dev" + "dev-master": "1.9.x-dev" } }, "autoload": { @@ -461,20 +462,20 @@ "orm", "persistence" ], - "time": "2018-04-19T14:07:39+00:00" + "time": "2018-11-30T13:53:17+00:00" }, { "name": "doctrine/doctrine-cache-bundle", - "version": "1.3.3", + "version": "1.3.5", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineCacheBundle.git", - "reference": "4c8e363f96427924e7e519c5b5119b4f54512697" + "reference": "5514c90d9fb595e1095e6d66ebb98ce9ef049927" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/4c8e363f96427924e7e519c5b5119b4f54512697", - "reference": "4c8e363f96427924e7e519c5b5119b4f54512697", + "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/5514c90d9fb595e1095e6d66ebb98ce9ef049927", + "reference": "5514c90d9fb595e1095e6d66ebb98ce9ef049927", "shasum": "" }, "require": { @@ -487,7 +488,7 @@ "instaclick/coding-standard": "~1.1", "instaclick/object-calisthenics-sniffs": "dev-master", "instaclick/symfony2-coding-standard": "dev-remaster", - "phpunit/phpunit": "~4|~5", + "phpunit/phpunit": "~4.8.36|~5.6|~6.5|~7.0", "predis/predis": "~0.8", "satooshi/php-coveralls": "^1.0", "squizlabs/php_codesniffer": "~1.5", @@ -511,7 +512,10 @@ "autoload": { "psr-4": { "Doctrine\\Bundle\\DoctrineCacheBundle\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -544,25 +548,25 @@ } ], "description": "Symfony Bundle for Doctrine Cache", - "homepage": "http://www.doctrine-project.org", + "homepage": "https://www.doctrine-project.org", "keywords": [ "cache", "caching" ], - "time": "2018-03-27T09:22:12+00:00" + "time": "2018-11-09T06:25:35+00:00" }, { "name": "doctrine/doctrine-migrations-bundle", - "version": "v1.3.1", + "version": "v1.3.2", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineMigrationsBundle.git", - "reference": "a9e506369f931351a2a6dd2aef588a822802b1b7" + "reference": "49fa399181db4bf4f9f725126bd1cb65c4398dce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineMigrationsBundle/zipball/a9e506369f931351a2a6dd2aef588a822802b1b7", - "reference": "a9e506369f931351a2a6dd2aef588a822802b1b7", + "url": "https://api.github.com/repos/doctrine/DoctrineMigrationsBundle/zipball/49fa399181db4bf4f9f725126bd1cb65c4398dce", + "reference": "49fa399181db4bf4f9f725126bd1cb65c4398dce", "shasum": "" }, "require": { @@ -572,7 +576,7 @@ "symfony/framework-bundle": "~2.7|~3.3|~4.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.36" + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^7.4" }, "type": "symfony-bundle", "extra": { @@ -610,7 +614,7 @@ "migrations", "schema" ], - "time": "2017-11-01T09:13:26+00:00" + "time": "2018-12-03T11:55:33+00:00" }, { "name": "doctrine/event-manager", @@ -937,16 +941,16 @@ }, { "name": "doctrine/orm", - "version": "v2.6.2", + "version": "v2.6.3", "source": { "type": "git", "url": "https://github.com/doctrine/doctrine2.git", - "reference": "d2b4dd71d2a276edd65d0c170375b445f8a4a4a8" + "reference": "434820973cadf2da2d66e7184be370084cc32ca8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/d2b4dd71d2a276edd65d0c170375b445f8a4a4a8", - "reference": "d2b4dd71d2a276edd65d0c170375b445f8a4a4a8", + "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/434820973cadf2da2d66e7184be370084cc32ca8", + "reference": "434820973cadf2da2d66e7184be370084cc32ca8", "shasum": "" }, "require": { @@ -1015,20 +1019,20 @@ "database", "orm" ], - "time": "2018-07-12T20:47:13+00:00" + "time": "2018-11-20T23:46:46+00:00" }, { "name": "doctrine/persistence", - "version": "v1.0.1", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/persistence.git", - "reference": "af1ec238659a83e320f03e0e454e200f689b4b97" + "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/persistence/zipball/af1ec238659a83e320f03e0e454e200f689b4b97", - "reference": "af1ec238659a83e320f03e0e454e200f689b4b97", + "url": "https://api.github.com/repos/doctrine/persistence/zipball/c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38", + "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38", "shasum": "" }, "require": { @@ -1040,17 +1044,17 @@ "php": "^7.1" }, "conflict": { - "doctrine/common": "<2.9@dev" + "doctrine/common": "<2.10@dev" }, "require-dev": { - "doctrine/coding-standard": "^4.0", + "doctrine/coding-standard": "^5.0", "phpstan/phpstan": "^0.8", "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -1088,12 +1092,16 @@ "email": "ocramius@gmail.com" } ], - "description": "Doctrine Persistence abstractions.", + "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.", "homepage": "https://doctrine-project.org/projects/persistence.html", "keywords": [ + "mapper", + "object", + "odm", + "orm", "persistence" ], - "time": "2018-07-12T12:37:50+00:00" + "time": "2018-11-21T00:33:13+00:00" }, { "name": "doctrine/reflection", @@ -1399,33 +1407,34 @@ }, { "name": "ocramius/proxy-manager", - "version": "2.1.1", + "version": "2.2.2", "source": { "type": "git", "url": "https://github.com/Ocramius/ProxyManager.git", - "reference": "e18ac876b2e4819c76349de8f78ccc8ef1554cd7" + "reference": "14b137b06b0f911944132df9d51e445a35920ab1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/e18ac876b2e4819c76349de8f78ccc8ef1554cd7", - "reference": "e18ac876b2e4819c76349de8f78ccc8ef1554cd7", + "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/14b137b06b0f911944132df9d51e445a35920ab1", + "reference": "14b137b06b0f911944132df9d51e445a35920ab1", "shasum": "" }, "require": { - "ocramius/package-versions": "^1.1.1", - "php": "^7.1.0", - "zendframework/zend-code": "^3.1.0" + "ocramius/package-versions": "^1.1.3", + "php": "^7.2.0", + "zendframework/zend-code": "^3.3.0" }, "require-dev": { - "couscous/couscous": "^1.5.2", + "couscous/couscous": "^1.6.1", "ext-phar": "*", - "humbug/humbug": "dev-master@DEV", - "nikic/php-parser": "^3.0.4", + "humbug/humbug": "1.0.0-RC.0@RC", + "nikic/php-parser": "^3.1.1", + "padraic/phpunit-accelerator": "dev-master@DEV", "phpbench/phpbench": "^0.12.2", - "phpstan/phpstan": "^0.6.4", - "phpunit/phpunit": "^5.6.4", - "phpunit/phpunit-mock-objects": "^3.4.1", - "squizlabs/php_codesniffer": "^2.7.0" + "phpstan/phpstan": "dev-master#856eb10a81c1d27c701a83f167dc870fd8f4236a as 0.9.999", + "phpstan/phpstan-phpunit": "dev-master#5629c0a1f4a9c417cb1077cf6693ad9753895761", + "phpunit/phpunit": "^6.4.3", + "squizlabs/php_codesniffer": "^2.9.1" }, "suggest": { "ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects", @@ -1464,7 +1473,7 @@ "proxy pattern", "service proxies" ], - "time": "2017-05-04T11:12:50+00:00" + "time": "2018-09-27T13:45:01+00:00" }, { "name": "psr/cache", @@ -1563,16 +1572,16 @@ }, { "name": "psr/log", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", "shasum": "" }, "require": { @@ -1606,7 +1615,7 @@ "psr", "psr-3" ], - "time": "2016-10-10T12:19:37+00:00" + "time": "2018-11-20T15:27:04+00:00" }, { "name": "psr/simple-cache", @@ -1658,16 +1667,16 @@ }, { "name": "sensio/framework-extra-bundle", - "version": "v5.2.0", + "version": "v5.2.4", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", - "reference": "50e8b7292425957b8fd66887504430c89bcbd83c" + "reference": "1fdf591c4b388e62dbb2579de89c1560b33f865d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/50e8b7292425957b8fd66887504430c89bcbd83c", - "reference": "50e8b7292425957b8fd66887504430c89bcbd83c", + "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/1fdf591c4b388e62dbb2579de89c1560b33f865d", + "reference": "1fdf591c4b388e62dbb2579de89c1560b33f865d", "shasum": "" }, "require": { @@ -1686,7 +1695,7 @@ "symfony/finder": "^3.3|^4.0", "symfony/monolog-bridge": "^3.0|^4.0", "symfony/monolog-bundle": "^3.2", - "symfony/phpunit-bridge": "^3.3|^4.0", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8", "symfony/psr-http-message-bridge": "^0.3", "symfony/security-bundle": "^3.3|^4.0", "symfony/twig-bundle": "^3.3|^4.0", @@ -1725,7 +1734,7 @@ "annotations", "controllers" ], - "time": "2018-05-12T09:37:42+00:00" + "time": "2018-12-11T16:59:23+00:00" }, { "name": "symfony/apache-pack", @@ -1751,16 +1760,16 @@ }, { "name": "symfony/asset", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", - "reference": "7bec13dad0df8146ee6ba9350203fcc832814bfe" + "reference": "fb06338fd3762f8615b51a58e5e9299ccca03876" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/asset/zipball/7bec13dad0df8146ee6ba9350203fcc832814bfe", - "reference": "7bec13dad0df8146ee6ba9350203fcc832814bfe", + "url": "https://api.github.com/repos/symfony/asset/zipball/fb06338fd3762f8615b51a58e5e9299ccca03876", + "reference": "fb06338fd3762f8615b51a58e5e9299ccca03876", "shasum": "" }, "require": { @@ -1776,7 +1785,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -1803,45 +1812,53 @@ ], "description": "Symfony Asset Component", "homepage": "https://symfony.com", - "time": "2018-07-26T09:10:45+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "symfony/cache", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "b8440ff4635c6631aca21a09ab72e0b7e3a6cb7a" + "reference": "5c4b50d6ba4f1c8955c3454444c1e3cfddaaad41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/b8440ff4635c6631aca21a09ab72e0b7e3a6cb7a", - "reference": "b8440ff4635c6631aca21a09ab72e0b7e3a6cb7a", + "url": "https://api.github.com/repos/symfony/cache/zipball/5c4b50d6ba4f1c8955c3454444c1e3cfddaaad41", + "reference": "5c4b50d6ba4f1c8955c3454444c1e3cfddaaad41", "shasum": "" }, "require": { "php": "^7.1.3", "psr/cache": "~1.0", "psr/log": "~1.0", - "psr/simple-cache": "^1.0" + "psr/simple-cache": "^1.0", + "symfony/contracts": "^1.0", + "symfony/var-exporter": "^4.2" }, "conflict": { + "doctrine/dbal": "<2.5", + "symfony/dependency-injection": "<3.4", "symfony/var-dumper": "<3.4" }, "provide": { "psr/cache-implementation": "1.0", - "psr/simple-cache-implementation": "1.0" + "psr/simple-cache-implementation": "1.0", + "symfony/cache-contracts-implementation": "1.0" }, "require-dev": { "cache/integration-tests": "dev-master", "doctrine/cache": "~1.6", - "doctrine/dbal": "~2.4", - "predis/predis": "~1.0" + "doctrine/dbal": "~2.5", + "predis/predis": "~1.1", + "symfony/config": "~4.2", + "symfony/dependency-injection": "~3.4|~4.1", + "symfony/var-dumper": "^4.1.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -1872,20 +1889,20 @@ "caching", "psr6" ], - "time": "2018-08-27T09:36:56+00:00" + "time": "2018-12-06T11:00:08+00:00" }, { "name": "symfony/config", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "76015a3cc372b14d00040ff58e18e29f69eba717" + "reference": "005d9a083d03f588677d15391a716b1ac9b887c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/76015a3cc372b14d00040ff58e18e29f69eba717", - "reference": "76015a3cc372b14d00040ff58e18e29f69eba717", + "url": "https://api.github.com/repos/symfony/config/zipball/005d9a083d03f588677d15391a716b1ac9b887c0", + "reference": "005d9a083d03f588677d15391a716b1ac9b887c0", "shasum": "" }, "require": { @@ -1908,7 +1925,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -1935,24 +1952,25 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2018-08-08T06:37:38+00:00" + "time": "2018-11-30T22:21:14+00:00" }, { "name": "symfony/console", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f" + "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ca80b8ced97cf07390078b29773dc384c39eee1f", - "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f", + "url": "https://api.github.com/repos/symfony/console/zipball/4dff24e5d01e713818805c1862d2e3f901ee7dd0", + "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0", "shasum": "" }, "require": { "php": "^7.1.3", + "symfony/contracts": "^1.0", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { @@ -1976,7 +1994,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2003,20 +2021,88 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-07-26T11:24:31+00:00" + "time": "2018-11-27T07:40:44+00:00" + }, + { + "name": "symfony/contracts", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/contracts.git", + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "require-dev": { + "psr/cache": "^1.0", + "psr/container": "^1.0" + }, + "suggest": { + "psr/cache": "When using the Cache contracts", + "psr/container": "When using the Service contracts", + "symfony/cache-contracts-implementation": "", + "symfony/service-contracts-implementation": "", + "symfony/translation-contracts-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\": "" + }, + "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": "A set of abstractions extracted out of the Symfony components", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2018-12-05T08:06:11+00:00" }, { "name": "symfony/debug", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "47ead688f1f2877f3f14219670f52e4722ee7052" + "reference": "e0a2b92ee0b5b934f973d90c2f58e18af109d276" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/47ead688f1f2877f3f14219670f52e4722ee7052", - "reference": "47ead688f1f2877f3f14219670f52e4722ee7052", + "url": "https://api.github.com/repos/symfony/debug/zipball/e0a2b92ee0b5b934f973d90c2f58e18af109d276", + "reference": "e0a2b92ee0b5b934f973d90c2f58e18af109d276", "shasum": "" }, "require": { @@ -2032,7 +2118,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2059,37 +2145,39 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2018-08-03T11:13:38+00:00" + "time": "2018-11-28T18:24:18+00:00" }, { "name": "symfony/dependency-injection", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "bae4983003c9d451e278504d7d9b9d7fc1846873" + "reference": "e4adc57a48d3fa7f394edfffa9e954086d7740e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/bae4983003c9d451e278504d7d9b9d7fc1846873", - "reference": "bae4983003c9d451e278504d7d9b9d7fc1846873", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/e4adc57a48d3fa7f394edfffa9e954086d7740e5", + "reference": "e4adc57a48d3fa7f394edfffa9e954086d7740e5", "shasum": "" }, "require": { "php": "^7.1.3", - "psr/container": "^1.0" + "psr/container": "^1.0", + "symfony/contracts": "^1.0" }, "conflict": { - "symfony/config": "<4.1.1", + "symfony/config": "<4.2", "symfony/finder": "<3.4", "symfony/proxy-manager-bridge": "<3.4", "symfony/yaml": "<3.4" }, "provide": { - "psr/container-implementation": "1.0" + "psr/container-implementation": "1.0", + "symfony/service-contracts-implementation": "1.0" }, "require-dev": { - "symfony/config": "~4.1", + "symfony/config": "~4.2", "symfony/expression-language": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, @@ -2103,7 +2191,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2130,40 +2218,48 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2018-08-08T11:48:58+00:00" + "time": "2018-12-02T15:59:36+00:00" }, { "name": "symfony/doctrine-bridge", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "58e331b3f6bbbd0beeb41cc924455bf85f660f50" + "reference": "3466c911438e176c20e1943c529131889432d12f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/58e331b3f6bbbd0beeb41cc924455bf85f660f50", - "reference": "58e331b3f6bbbd0beeb41cc924455bf85f660f50", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/3466c911438e176c20e1943c529131889432d12f", + "reference": "3466c911438e176c20e1943c529131889432d12f", "shasum": "" }, "require": { - "doctrine/common": "~2.4", + "doctrine/collections": "~1.0", + "doctrine/event-manager": "~1.0", + "doctrine/persistence": "~1.0", "php": "^7.1.3", + "symfony/contracts": "^1.0", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", - "symfony/dependency-injection": "<3.4" + "symfony/dependency-injection": "<3.4", + "symfony/messenger": "<4.2" }, "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/cache": "~1.6", "doctrine/data-fixtures": "1.0.*", "doctrine/dbal": "~2.4", "doctrine/orm": "^2.4.5", + "doctrine/reflection": "~1.0", "symfony/dependency-injection": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", "symfony/form": "~3.4|~4.0", "symfony/http-kernel": "~3.4|~4.0", + "symfony/messenger": "~4.2", "symfony/property-access": "~3.4|~4.0", "symfony/property-info": "~3.4|~4.0", "symfony/proxy-manager-bridge": "~3.4|~4.0", @@ -2183,7 +2279,7 @@ "type": "symfony-bridge", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2210,20 +2306,20 @@ ], "description": "Symfony Doctrine Bridge", "homepage": "https://symfony.com", - "time": "2018-08-24T10:22:26+00:00" + "time": "2018-12-05T09:34:58+00:00" }, { "name": "symfony/dotenv", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7" + "reference": "97f135ab40f969cbeae27d482ff63acbc33dbe2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7", - "reference": "22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/97f135ab40f969cbeae27d482ff63acbc33dbe2a", + "reference": "97f135ab40f969cbeae27d482ff63acbc33dbe2a", "shasum": "" }, "require": { @@ -2235,7 +2331,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2267,24 +2363,25 @@ "env", "environment" ], - "time": "2018-07-26T11:24:31+00:00" + "time": "2018-11-26T10:55:26+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "bfb30c2ad377615a463ebbc875eba64a99f6aa3e" + "reference": "921f49c3158a276d27c0d770a5a347a3b718b328" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bfb30c2ad377615a463ebbc875eba64a99f6aa3e", - "reference": "bfb30c2ad377615a463ebbc875eba64a99f6aa3e", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/921f49c3158a276d27c0d770a5a347a3b718b328", + "reference": "921f49c3158a276d27c0d770a5a347a3b718b328", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.1.3", + "symfony/contracts": "^1.0" }, "conflict": { "symfony/dependency-injection": "<3.4" @@ -2303,7 +2400,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2330,20 +2427,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2018-07-26T09:10:45+00:00" + "time": "2018-12-01T08:52:38+00:00" }, { "name": "symfony/filesystem", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "c0f5f62db218fa72195b8b8700e4b9b9cf52eb5e" + "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/c0f5f62db218fa72195b8b8700e4b9b9cf52eb5e", - "reference": "c0f5f62db218fa72195b8b8700e4b9b9cf52eb5e", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/2f4c8b999b3b7cadb2a69390b01af70886753710", + "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710", "shasum": "" }, "require": { @@ -2353,7 +2450,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2380,20 +2477,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2018-08-18T16:52:46+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "symfony/finder", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068" + "reference": "e53d477d7b5c4982d0e1bfd2298dbee63d01441d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/e162f1df3102d0b7472805a5a9d5db9fcf0a8068", - "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068", + "url": "https://api.github.com/repos/symfony/finder/zipball/e53d477d7b5c4982d0e1bfd2298dbee63d01441d", + "reference": "e53d477d7b5c4982d0e1bfd2298dbee63d01441d", "shasum": "" }, "require": { @@ -2402,7 +2499,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2429,20 +2526,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-07-26T11:24:31+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "symfony/flex", - "version": "v1.1.1", + "version": "v1.1.8", "source": { "type": "git", "url": "https://github.com/symfony/flex.git", - "reference": "9fb60f232af0764d58002e7872acb43a74506d25" + "reference": "955774ecf07b10230bb5b44e150ba078b45f68fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/flex/zipball/9fb60f232af0764d58002e7872acb43a74506d25", - "reference": "9fb60f232af0764d58002e7872acb43a74506d25", + "url": "https://api.github.com/repos/symfony/flex/zipball/955774ecf07b10230bb5b44e150ba078b45f68fa", + "reference": "955774ecf07b10230bb5b44e150ba078b45f68fa", "shasum": "" }, "require": { @@ -2476,27 +2573,27 @@ } ], "description": "Composer plugin for Symfony", - "time": "2018-09-03T08:17:12+00:00" + "time": "2018-11-15T06:11:38+00:00" }, { "name": "symfony/form", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/form.git", - "reference": "f9b2156c881dd881bacb0a953055a28f1a517536" + "reference": "5ab767b7732154ca6f45c92e30e081178edf30ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/form/zipball/f9b2156c881dd881bacb0a953055a28f1a517536", - "reference": "f9b2156c881dd881bacb0a953055a28f1a517536", + "url": "https://api.github.com/repos/symfony/form/zipball/5ab767b7732154ca6f45c92e30e081178edf30ad", + "reference": "5ab767b7732154ca6f45c92e30e081178edf30ad", "shasum": "" }, "require": { "php": "^7.1.3", "symfony/event-dispatcher": "~3.4|~4.0", "symfony/intl": "~3.4|~4.0", - "symfony/options-resolver": "~3.4|~4.0", + "symfony/options-resolver": "~4.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0", "symfony/property-access": "~3.4|~4.0" @@ -2507,6 +2604,7 @@ "symfony/doctrine-bridge": "<3.4", "symfony/framework-bundle": "<3.4", "symfony/http-kernel": "<3.4", + "symfony/translation": "<4.2", "symfony/twig-bridge": "<3.4.5|<4.0.5,>=4.0" }, "require-dev": { @@ -2517,7 +2615,7 @@ "symfony/http-foundation": "~3.4|~4.0", "symfony/http-kernel": "~3.4|~4.0", "symfony/security-csrf": "~3.4|~4.0", - "symfony/translation": "~3.4|~4.0", + "symfony/translation": "~4.2", "symfony/validator": "~3.4|~4.0", "symfony/var-dumper": "~3.4|~4.0" }, @@ -2530,7 +2628,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2557,33 +2655,34 @@ ], "description": "Symfony Form Component", "homepage": "https://symfony.com", - "time": "2018-08-24T10:22:26+00:00" + "time": "2018-12-06T11:36:58+00:00" }, { "name": "symfony/framework-bundle", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "f62dc69959253acf717c3d89cd509975daf10e02" + "reference": "eb32d67140510f04fe9cc5fb9ad38fda09591db1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/f62dc69959253acf717c3d89cd509975daf10e02", - "reference": "f62dc69959253acf717c3d89cd509975daf10e02", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/eb32d67140510f04fe9cc5fb9ad38fda09591db1", + "reference": "eb32d67140510f04fe9cc5fb9ad38fda09591db1", "shasum": "" }, "require": { "ext-xml": "*", "php": "^7.1.3", - "symfony/cache": "~3.4|~4.0", - "symfony/config": "~3.4|~4.0", - "symfony/dependency-injection": "^4.1.1", + "symfony/cache": "~4.2", + "symfony/config": "~4.2", + "symfony/contracts": "^1.0.2", + "symfony/dependency-injection": "^4.2", "symfony/event-dispatcher": "^4.1", "symfony/filesystem": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", - "symfony/http-foundation": "^4.1", - "symfony/http-kernel": "^4.1", + "symfony/http-foundation": "^4.1.2", + "symfony/http-kernel": "^4.2", "symfony/polyfill-mbstring": "~1.0", "symfony/routing": "^4.1" }, @@ -2593,11 +2692,13 @@ "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", "symfony/asset": "<3.4", "symfony/console": "<3.4", - "symfony/form": "<4.1", + "symfony/dotenv": "<4.2", + "symfony/form": "<4.2", + "symfony/messenger": "<4.2", "symfony/property-info": "<3.4", - "symfony/serializer": "<4.1", + "symfony/serializer": "<4.2", "symfony/stopwatch": "<3.4", - "symfony/translation": "<3.4", + "symfony/translation": "<4.2", "symfony/twig-bridge": "<4.1.1", "symfony/validator": "<4.1", "symfony/workflow": "<4.1" @@ -2613,19 +2714,19 @@ "symfony/css-selector": "~3.4|~4.0", "symfony/dom-crawler": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", - "symfony/form": "^4.1", + "symfony/form": "^4.2", "symfony/lock": "~3.4|~4.0", - "symfony/messenger": "^4.1", + "symfony/messenger": "^4.2", "symfony/polyfill-intl-icu": "~1.0", "symfony/process": "~3.4|~4.0", "symfony/property-info": "~3.4|~4.0", "symfony/security": "~3.4|~4.0", "symfony/security-core": "~3.4|~4.0", "symfony/security-csrf": "~3.4|~4.0", - "symfony/serializer": "^4.1", + "symfony/serializer": "^4.2", "symfony/stopwatch": "~3.4|~4.0", "symfony/templating": "~3.4|~4.0", - "symfony/translation": "~3.4|~4.0", + "symfony/translation": "~4.2", "symfony/validator": "^4.1", "symfony/var-dumper": "~3.4|~4.0", "symfony/web-link": "~3.4|~4.0", @@ -2635,6 +2736,7 @@ }, "suggest": { "ext-apcu": "For best performance of the system caches", + "phpdocumentor/reflection-docblock": "For display additional information in debug:container", "symfony/console": "For using the console commands", "symfony/form": "For using forms", "symfony/property-info": "For using the property_info service", @@ -2646,7 +2748,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2673,20 +2775,20 @@ ], "description": "Symfony FrameworkBundle", "homepage": "https://symfony.com", - "time": "2018-08-17T12:07:19+00:00" + "time": "2018-12-05T08:06:11+00:00" }, { "name": "symfony/http-foundation", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "3a5c91e133b220bb882b3cd773ba91bf39989345" + "reference": "1b31f3017fadd8cb05cf2c8aebdbf3b12a943851" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/3a5c91e133b220bb882b3cd773ba91bf39989345", - "reference": "3a5c91e133b220bb882b3cd773ba91bf39989345", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/1b31f3017fadd8cb05cf2c8aebdbf3b12a943851", + "reference": "1b31f3017fadd8cb05cf2c8aebdbf3b12a943851", "shasum": "" }, "require": { @@ -2700,7 +2802,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2727,25 +2829,26 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2018-08-27T17:47:02+00:00" + "time": "2018-11-26T10:55:26+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "33de0a1ff2e1720096189e3ced682d7a4e8f5e35" + "reference": "b39ceffc0388232c309cbde3a7c3685f2ec0a624" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/33de0a1ff2e1720096189e3ced682d7a4e8f5e35", - "reference": "33de0a1ff2e1720096189e3ced682d7a4e8f5e35", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/b39ceffc0388232c309cbde3a7c3685f2ec0a624", + "reference": "b39ceffc0388232c309cbde3a7c3685f2ec0a624", "shasum": "" }, "require": { "php": "^7.1.3", "psr/log": "~1.0", + "symfony/contracts": "^1.0.2", "symfony/debug": "~3.4|~4.0", "symfony/event-dispatcher": "~4.1", "symfony/http-foundation": "^4.1.1", @@ -2753,7 +2856,8 @@ }, "conflict": { "symfony/config": "<3.4", - "symfony/dependency-injection": "<4.1", + "symfony/dependency-injection": "<4.2", + "symfony/translation": "<4.2", "symfony/var-dumper": "<4.1.1", "twig/twig": "<1.34|<2.4,>=2" }, @@ -2766,7 +2870,7 @@ "symfony/config": "~3.4|~4.0", "symfony/console": "~3.4|~4.0", "symfony/css-selector": "~3.4|~4.0", - "symfony/dependency-injection": "^4.1", + "symfony/dependency-injection": "^4.2", "symfony/dom-crawler": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", @@ -2774,7 +2878,7 @@ "symfony/routing": "~3.4|~4.0", "symfony/stopwatch": "~3.4|~4.0", "symfony/templating": "~3.4|~4.0", - "symfony/translation": "~3.4|~4.0", + "symfony/translation": "~4.2", "symfony/var-dumper": "^4.1.1" }, "suggest": { @@ -2787,7 +2891,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2814,20 +2918,20 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2018-08-28T06:17:42+00:00" + "time": "2018-12-06T17:39:52+00:00" }, { "name": "symfony/inflector", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", - "reference": "07810b5c88ec0c2e98972571a40a126b44664e13" + "reference": "f9a637c0359f74404d44cf0da0a3ce53bae0787e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/inflector/zipball/07810b5c88ec0c2e98972571a40a126b44664e13", - "reference": "07810b5c88ec0c2e98972571a40a126b44664e13", + "url": "https://api.github.com/repos/symfony/inflector/zipball/f9a637c0359f74404d44cf0da0a3ce53bae0787e", + "reference": "f9a637c0359f74404d44cf0da0a3ce53bae0787e", "shasum": "" }, "require": { @@ -2837,7 +2941,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2872,20 +2976,20 @@ "symfony", "words" ], - "time": "2018-07-26T08:55:25+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "symfony/intl", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/intl.git", - "reference": "ab0fba135f163ca6e1d72ab6fdeac49e0285e6b0" + "reference": "748a1c54903344385f88fef75da293915b16a207" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/intl/zipball/ab0fba135f163ca6e1d72ab6fdeac49e0285e6b0", - "reference": "ab0fba135f163ca6e1d72ab6fdeac49e0285e6b0", + "url": "https://api.github.com/repos/symfony/intl/zipball/748a1c54903344385f88fef75da293915b16a207", + "reference": "748a1c54903344385f88fef75da293915b16a207", "shasum": "" }, "require": { @@ -2901,7 +3005,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -2947,20 +3051,20 @@ "l10n", "localization" ], - "time": "2018-08-01T08:24:03+00:00" + "time": "2018-12-01T08:52:38+00:00" }, { "name": "symfony/options-resolver", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "1913f1962477cdbb13df951f8147d5da1fe2412c" + "reference": "a9c38e8a3da2c03b3e71fdffa6efb0bda51390ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/1913f1962477cdbb13df951f8147d5da1fe2412c", - "reference": "1913f1962477cdbb13df951f8147d5da1fe2412c", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a9c38e8a3da2c03b3e71fdffa6efb0bda51390ba", + "reference": "a9c38e8a3da2c03b3e71fdffa6efb0bda51390ba", "shasum": "" }, "require": { @@ -2969,7 +3073,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3001,7 +3105,7 @@ "configuration", "options" ], - "time": "2018-07-26T08:55:25+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "symfony/orm-pack", @@ -3033,7 +3137,7 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.9.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -3091,7 +3195,7 @@ }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.9.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", @@ -3149,16 +3253,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.9.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8" + "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8", - "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", + "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", "shasum": "" }, "require": { @@ -3204,20 +3308,20 @@ "portable", "shim" ], - "time": "2018-08-06T14:22:27+00:00" + "time": "2018-09-21T13:07:52+00:00" }, { "name": "symfony/process", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "86cdb930a6a855b0ab35fb60c1504cb36184f843" + "reference": "2b341009ccec76837a7f46f59641b431e4d4c2b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/86cdb930a6a855b0ab35fb60c1504cb36184f843", - "reference": "86cdb930a6a855b0ab35fb60c1504cb36184f843", + "url": "https://api.github.com/repos/symfony/process/zipball/2b341009ccec76837a7f46f59641b431e4d4c2b0", + "reference": "2b341009ccec76837a7f46f59641b431e4d4c2b0", "shasum": "" }, "require": { @@ -3226,7 +3330,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3253,20 +3357,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2018-08-03T11:13:38+00:00" + "time": "2018-11-20T16:22:05+00:00" }, { "name": "symfony/property-access", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "ae8561ba08af38e12dc5e21582ddb4baf66719ca" + "reference": "b6df4e1849f389468edb36e2e59877d4a8170723" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/ae8561ba08af38e12dc5e21582ddb4baf66719ca", - "reference": "ae8561ba08af38e12dc5e21582ddb4baf66719ca", + "url": "https://api.github.com/repos/symfony/property-access/zipball/b6df4e1849f389468edb36e2e59877d4a8170723", + "reference": "b6df4e1849f389468edb36e2e59877d4a8170723", "shasum": "" }, "require": { @@ -3282,7 +3386,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3320,34 +3424,34 @@ "property path", "reflection" ], - "time": "2018-08-24T10:22:26+00:00" + "time": "2018-11-29T14:48:32+00:00" }, { "name": "symfony/routing", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "a5784c2ec4168018c87b38f0e4f39d2278499f51" + "reference": "649460207e77da6c545326c7f53618d23ad2c866" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/a5784c2ec4168018c87b38f0e4f39d2278499f51", - "reference": "a5784c2ec4168018c87b38f0e4f39d2278499f51", + "url": "https://api.github.com/repos/symfony/routing/zipball/649460207e77da6c545326c7f53618d23ad2c866", + "reference": "649460207e77da6c545326c7f53618d23ad2c866", "shasum": "" }, "require": { "php": "^7.1.3" }, "conflict": { - "symfony/config": "<3.4", + "symfony/config": "<4.2", "symfony/dependency-injection": "<3.4", "symfony/yaml": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.0", "psr/log": "~1.0", - "symfony/config": "~3.4|~4.0", + "symfony/config": "~4.2", "symfony/dependency-injection": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", "symfony/http-foundation": "~3.4|~4.0", @@ -3364,7 +3468,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3397,24 +3501,25 @@ "uri", "url" ], - "time": "2018-08-03T07:58:40+00:00" + "time": "2018-12-03T22:08:12+00:00" }, { "name": "symfony/translation", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "fa2182669f7983b7aa5f1a770d053f79f0ef144f" + "reference": "c0e2191e9bed845946ab3d99767513b56ca7dcd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/fa2182669f7983b7aa5f1a770d053f79f0ef144f", - "reference": "fa2182669f7983b7aa5f1a770d053f79f0ef144f", + "url": "https://api.github.com/repos/symfony/translation/zipball/c0e2191e9bed845946ab3d99767513b56ca7dcd6", + "reference": "c0e2191e9bed845946ab3d99767513b56ca7dcd6", "shasum": "" }, "require": { "php": "^7.1.3", + "symfony/contracts": "^1.0.2", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { @@ -3422,6 +3527,9 @@ "symfony/dependency-injection": "<3.4", "symfony/yaml": "<3.4" }, + "provide": { + "symfony/translation-contracts-implementation": "1.0" + }, "require-dev": { "psr/log": "~1.0", "symfony/config": "~3.4|~4.0", @@ -3439,7 +3547,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3466,29 +3574,31 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2018-08-07T12:45:11+00:00" + "time": "2018-12-06T10:45:32+00:00" }, { "name": "symfony/twig-bridge", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "550cd9cd3a106a3426bdb2bd9d2914a4937656d1" + "reference": "2e928d6c8244e7f3b32bcfac5814095a83179e60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/550cd9cd3a106a3426bdb2bd9d2914a4937656d1", - "reference": "550cd9cd3a106a3426bdb2bd9d2914a4937656d1", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/2e928d6c8244e7f3b32bcfac5814095a83179e60", + "reference": "2e928d6c8244e7f3b32bcfac5814095a83179e60", "shasum": "" }, "require": { "php": "^7.1.3", + "symfony/contracts": "^1.0.2", "twig/twig": "^1.35|^2.4.4" }, "conflict": { "symfony/console": "<3.4", - "symfony/form": "<4.1.2" + "symfony/form": "<4.2", + "symfony/translation": "<4.2" }, "require-dev": { "symfony/asset": "~3.4|~4.0", @@ -3496,7 +3606,7 @@ "symfony/dependency-injection": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", - "symfony/form": "^4.1.2", + "symfony/form": "^4.2", "symfony/http-foundation": "~3.4|~4.0", "symfony/http-kernel": "~3.4|~4.0", "symfony/polyfill-intl-icu": "~1.0", @@ -3505,7 +3615,7 @@ "symfony/security-acl": "~2.8|~3.0", "symfony/stopwatch": "~3.4|~4.0", "symfony/templating": "~3.4|~4.0", - "symfony/translation": "~3.4|~4.0", + "symfony/translation": "~4.2", "symfony/var-dumper": "~3.4|~4.0", "symfony/web-link": "~3.4|~4.0", "symfony/workflow": "~3.4|~4.0", @@ -3529,7 +3639,7 @@ "type": "symfony-bridge", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3556,34 +3666,35 @@ ], "description": "Symfony Twig Bridge", "homepage": "https://symfony.com", - "time": "2018-08-14T15:48:59+00:00" + "time": "2018-12-06T10:57:56+00:00" }, { "name": "symfony/twig-bundle", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", - "reference": "7ad77c4f669d7d5de0032b876b19e2b664003e85" + "reference": "024820cbb4aeffc4843c4170b69c057fb4840fb3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/7ad77c4f669d7d5de0032b876b19e2b664003e85", - "reference": "7ad77c4f669d7d5de0032b876b19e2b664003e85", + "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/024820cbb4aeffc4843c4170b69c057fb4840fb3", + "reference": "024820cbb4aeffc4843c4170b69c057fb4840fb3", "shasum": "" }, "require": { "php": "^7.1.3", - "symfony/config": "~3.4|~4.0", + "symfony/config": "~4.2", "symfony/http-foundation": "~4.1", "symfony/http-kernel": "~4.1", "symfony/polyfill-ctype": "~1.8", - "symfony/twig-bridge": "^3.4.3|^4.0.3", + "symfony/twig-bridge": "^4.2", "twig/twig": "~1.34|~2.4" }, "conflict": { "symfony/dependency-injection": "<4.1", - "symfony/framework-bundle": "<4.1" + "symfony/framework-bundle": "<4.1", + "symfony/translation": "<4.2" }, "require-dev": { "doctrine/annotations": "~1.0", @@ -3597,13 +3708,14 @@ "symfony/routing": "~3.4|~4.0", "symfony/stopwatch": "~3.4|~4.0", "symfony/templating": "~3.4|~4.0", + "symfony/translation": "^4.2", "symfony/web-link": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3630,33 +3742,34 @@ ], "description": "Symfony TwigBundle", "homepage": "https://symfony.com", - "time": "2018-07-26T09:10:45+00:00" + "time": "2018-12-02T10:42:21+00:00" }, { "name": "symfony/validator", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "92646dd2c781f2a8926f9bf57a9333a1e5a628c5" + "reference": "cd35bb14a0e81bd99835e36cac4db1e72ad1939b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/92646dd2c781f2a8926f9bf57a9333a1e5a628c5", - "reference": "92646dd2c781f2a8926f9bf57a9333a1e5a628c5", + "url": "https://api.github.com/repos/symfony/validator/zipball/cd35bb14a0e81bd99835e36cac4db1e72ad1939b", + "reference": "cd35bb14a0e81bd99835e36cac4db1e72ad1939b", "shasum": "" }, "require": { "php": "^7.1.3", + "symfony/contracts": "^1.0.2", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.0", - "symfony/translation": "~3.4|~4.0" + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", "symfony/dependency-injection": "<3.4", "symfony/http-kernel": "<3.4", "symfony/intl": "<4.1", + "symfony/translation": "<4.2", "symfony/yaml": "<3.4" }, "require-dev": { @@ -3671,6 +3784,7 @@ "symfony/http-kernel": "~3.4|~4.0", "symfony/intl": "~4.1", "symfony/property-access": "~3.4|~4.0", + "symfony/translation": "~4.2", "symfony/var-dumper": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, @@ -3684,12 +3798,13 @@ "symfony/http-foundation": "", "symfony/intl": "", "symfony/property-access": "For accessing properties within comparison constraints", + "symfony/translation": "For translating validation errors.", "symfony/yaml": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3716,20 +3831,80 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2018-08-07T09:35:05+00:00" + "time": "2018-12-05T08:06:11+00:00" + }, + { + "name": "symfony/var-exporter", + "version": "v4.2.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-exporter.git", + "reference": "a39222e357362424b61dcde50e2f7b5a7d3306db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/a39222e357362424b61dcde50e2f7b5a7d3306db", + "reference": "a39222e357362424b61dcde50e2f7b5a7d3306db", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "require-dev": { + "symfony/var-dumper": "^4.1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\VarExporter\\": "" + }, + "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": "A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code", + "homepage": "https://symfony.com", + "keywords": [ + "clone", + "construct", + "export", + "hydrate", + "instantiate", + "serialize" + ], + "time": "2018-12-03T22:40:09+00:00" }, { "name": "symfony/web-server-bundle", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/web-server-bundle.git", - "reference": "448d4437e95d0884856a1e83bc51a15b5d048060" + "reference": "6291444989fc753df2a9c86e5f6d5af4616804f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-server-bundle/zipball/448d4437e95d0884856a1e83bc51a15b5d048060", - "reference": "448d4437e95d0884856a1e83bc51a15b5d048060", + "url": "https://api.github.com/repos/symfony/web-server-bundle/zipball/6291444989fc753df2a9c86e5f6d5af4616804f5", + "reference": "6291444989fc753df2a9c86e5f6d5af4616804f5", "shasum": "" }, "require": { @@ -3748,7 +3923,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3775,20 +3950,20 @@ ], "description": "Symfony WebServerBundle", "homepage": "https://symfony.com", - "time": "2018-07-26T09:10:45+00:00" + "time": "2018-11-13T19:11:56+00:00" }, { "name": "symfony/yaml", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "b832cc289608b6d305f62149df91529a2ab3c314" + "reference": "c41175c801e3edfda90f32e292619d10c27103d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/b832cc289608b6d305f62149df91529a2ab3c314", - "reference": "b832cc289608b6d305f62149df91529a2ab3c314", + "url": "https://api.github.com/repos/symfony/yaml/zipball/c41175c801e3edfda90f32e292619d10c27103d7", + "reference": "c41175c801e3edfda90f32e292619d10c27103d7", "shasum": "" }, "require": { @@ -3807,7 +3982,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -3834,36 +4009,36 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2018-08-18T16:52:46+00:00" + "time": "2018-11-11T19:52:12+00:00" }, { "name": "twig/twig", - "version": "v2.5.0", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "6a5f676b77a90823c2d4eaf76137b771adf31323" + "reference": "a11dd39f5b6589e14f0ff3b36675d06047c589b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/6a5f676b77a90823c2d4eaf76137b771adf31323", - "reference": "6a5f676b77a90823c2d4eaf76137b771adf31323", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/a11dd39f5b6589e14f0ff3b36675d06047c589b1", + "reference": "a11dd39f5b6589e14f0ff3b36675d06047c589b1", "shasum": "" }, "require": { "php": "^7.0", "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-mbstring": "~1.0" + "symfony/polyfill-mbstring": "^1.3" }, "require-dev": { "psr/container": "^1.0", "symfony/debug": "^2.7", - "symfony/phpunit-bridge": "^3.3" + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5-dev" + "dev-master": "2.6-dev" } }, "autoload": { @@ -3901,7 +4076,7 @@ "keywords": [ "templating" ], - "time": "2018-07-13T07:18:09+00:00" + "time": "2018-12-16T10:36:48+00:00" }, { "name": "zendframework/zend-code", @@ -4012,6 +4187,62 @@ } ], "packages-dev": [ + { + "name": "composer/ca-bundle", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8afa52cd417f4ec417b4bfe86b68106538a87660", + "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "time": "2018-10-18T06:09:13+00:00" + }, { "name": "composer/semver", "version": "1.4.2", @@ -4076,16 +4307,16 @@ }, { "name": "composer/xdebug-handler", - "version": "1.3.0", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "b8e9745fb9b06ea6664d8872c4505fb16df4611c" + "reference": "dc523135366eb68f22268d069ea7749486458562" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/b8e9745fb9b06ea6664d8872c4505fb16df4611c", - "reference": "b8e9745fb9b06ea6664d8872c4505fb16df4611c", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/dc523135366eb68f22268d069ea7749486458562", + "reference": "dc523135366eb68f22268d069ea7749486458562", "shasum": "" }, "require": { @@ -4116,20 +4347,20 @@ "Xdebug", "performance" ], - "time": "2018-08-31T19:07:57+00:00" + "time": "2018-11-29T10:59:02+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.13.0", + "version": "v2.13.1", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "7136aa4e0c5f912e8af82383775460d906168a10" + "reference": "54814c62d5beef3ba55297b9b3186ed8b8a1b161" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/7136aa4e0c5f912e8af82383775460d906168a10", - "reference": "7136aa4e0c5f912e8af82383775460d906168a10", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/54814c62d5beef3ba55297b9b3186ed8b8a1b161", + "reference": "54814c62d5beef3ba55297b9b3186ed8b8a1b161", "shasum": "" }, "require": { @@ -4140,7 +4371,7 @@ "ext-tokenizer": "*", "php": "^5.6 || >=7.0 <7.3", "php-cs-fixer/diff": "^1.3", - "symfony/console": "^3.2 || ^4.0", + "symfony/console": "^3.4.17 || ^4.1.6", "symfony/event-dispatcher": "^3.0 || ^4.0", "symfony/filesystem": "^3.0 || ^4.0", "symfony/finder": "^3.0 || ^4.0", @@ -4176,11 +4407,6 @@ "php-cs-fixer" ], "type": "application", - "extra": { - "branch-alias": { - "dev-master": "2.13-dev" - } - }, "autoload": { "psr-4": { "PhpCsFixer\\": "src/" @@ -4212,84 +4438,922 @@ } ], "description": "A tool to automatically fix PHP code style", - "time": "2018-08-23T13:15:44+00:00" + "time": "2018-10-21T00:32:10+00:00" }, { - "name": "php-cs-fixer/diff", - "version": "v1.3.0", + "name": "jakub-onderka/php-parallel-lint", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756" + "url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git", + "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756", - "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/04fbd3f5fb1c83f08724aa58a23db90bd9086ee8", + "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3", - "symfony/process": "^3.3" + "jakub-onderka/php-console-highlighter": "~0.3", + "nette/tester": "~1.3", + "squizlabs/php_codesniffer": "~2.7" }, + "suggest": { + "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet" + }, + "bin": [ + "parallel-lint" + ], "type": "library", "autoload": { "classmap": [ - "src/" + "./" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "BSD-2-Clause" ], "authors": [ { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "SpacePossum" + "name": "Jakub Onderka", + "email": "ahoj@jakubonderka.cz" } ], - "description": "sebastian/diff v2 backport support for PHP5.6", - "homepage": "https://github.com/PHP-CS-Fixer", - "keywords": [ - "diff" - ], - "time": "2018-02-15T16:58:55+00:00" + "description": "This tool check syntax of PHP files about 20x faster than serial check.", + "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint", + "time": "2018-02-24T15:31:20+00:00" }, { - "name": "symfony/polyfill-php72", - "version": "v1.9.0", + "name": "jakub-onderka/php-var-dump-check", + "version": "v0.3", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "95c50420b0baed23852452a7f0c7b527303ed5ae" + "url": "https://github.com/JakubOnderka/PHP-Var-Dump-Check.git", + "reference": "c7b30cbe73b7815811d079cb5bc326c313dd084e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/95c50420b0baed23852452a7f0c7b527303ed5ae", - "reference": "95c50420b0baed23852452a7f0c7b527303ed5ae", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Var-Dump-Check/zipball/c7b30cbe73b7815811d079cb5bc326c313dd084e", + "reference": "c7b30cbe73b7815811d079cb5bc326c313dd084e", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.4.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.9-dev" - } + "require-dev": { + "jakub-onderka/php-parallel-lint": "~1.0", + "phpunit/phpunit": "~4.5" }, - "autoload": { - "psr-4": { + "suggest": { + "jakub-onderka/php-console-highlighter": "For colored console output" + }, + "bin": [ + "var-dump-check" + ], + "type": "library", + "autoload": { + "psr-4": { + "JakubOnderka\\PhpVarDumpCheck\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Jakub Onderka", + "email": "jakub.onderka@gmail.com" + } + ], + "description": "Find forgotten variables dump in PHP source code.", + "time": "2018-09-29T19:22:45+00:00" + }, + { + "name": "jean85/pretty-package-versions", + "version": "1.2", + "source": { + "type": "git", + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/75c7effcf3f77501d0e0caa75111aff4daa0dd48", + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48", + "shasum": "" + }, + "require": { + "ocramius/package-versions": "^1.2.0", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A wrapper for ocramius/package-versions to get pretty versions strings", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "time": "2018-06-13T13:22:40+00:00" + }, + { + "name": "nette/bootstrap", + "version": "v2.4.6", + "source": { + "type": "git", + "url": "https://github.com/nette/bootstrap.git", + "reference": "268816e3f1bb7426c3a4ceec2bd38a036b532543" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/bootstrap/zipball/268816e3f1bb7426c3a4ceec2bd38a036b532543", + "reference": "268816e3f1bb7426c3a4ceec2bd38a036b532543", + "shasum": "" + }, + "require": { + "nette/di": "~2.4.7", + "nette/utils": "~2.4", + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "latte/latte": "~2.2", + "nette/application": "~2.3", + "nette/caching": "~2.3", + "nette/database": "~2.3", + "nette/forms": "~2.3", + "nette/http": "~2.4.0", + "nette/mail": "~2.3", + "nette/robot-loader": "^2.4.2 || ^3.0", + "nette/safe-stream": "~2.2", + "nette/security": "~2.3", + "nette/tester": "~2.0", + "tracy/tracy": "^2.4.1" + }, + "suggest": { + "nette/robot-loader": "to use Configurator::createRobotLoader()", + "tracy/tracy": "to use Configurator::enableTracy()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.", + "homepage": "https://nette.org", + "keywords": [ + "bootstrapping", + "configurator", + "nette" + ], + "time": "2018-05-17T12:52:20+00:00" + }, + { + "name": "nette/di", + "version": "v2.4.14", + "source": { + "type": "git", + "url": "https://github.com/nette/di.git", + "reference": "923da3e2c0aa53162ef455472c0ac7787b096c5a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/di/zipball/923da3e2c0aa53162ef455472c0ac7787b096c5a", + "reference": "923da3e2c0aa53162ef455472c0ac7787b096c5a", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "nette/neon": "^2.3.3 || ~3.0.0", + "nette/php-generator": "^2.6.1 || ~3.0.0", + "nette/utils": "^2.4.3 || ~3.0.0", + "php": ">=5.6.0" + }, + "conflict": { + "nette/bootstrap": "<2.4", + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "^2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP 7.1 features.", + "homepage": "https://nette.org", + "keywords": [ + "compiled", + "di", + "dic", + "factory", + "ioc", + "nette", + "static" + ], + "time": "2018-09-17T15:47:40+00:00" + }, + { + "name": "nette/finder", + "version": "v2.4.2", + "source": { + "type": "git", + "url": "https://github.com/nette/finder.git", + "reference": "ee951a656cb8ac622e5dd33474a01fd2470505a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/finder/zipball/ee951a656cb8ac622e5dd33474a01fd2470505a0", + "reference": "ee951a656cb8ac622e5dd33474a01fd2470505a0", + "shasum": "" + }, + "require": { + "nette/utils": "~2.4", + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "~2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🔍 Nette Finder: find files and directories with an intuitive API.", + "homepage": "https://nette.org", + "keywords": [ + "filesystem", + "glob", + "iterator", + "nette" + ], + "time": "2018-06-28T11:49:23+00:00" + }, + { + "name": "nette/neon", + "version": "v2.4.3", + "source": { + "type": "git", + "url": "https://github.com/nette/neon.git", + "reference": "5e72b1dd3e2d34f0863c5561139a19df6a1ef398" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/neon/zipball/5e72b1dd3e2d34f0863c5561139a19df6a1ef398", + "reference": "5e72b1dd3e2d34f0863c5561139a19df6a1ef398", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "ext-json": "*", + "php": ">=5.6.0" + }, + "require-dev": { + "nette/tester": "~2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🍸 Nette NEON: encodes and decodes NEON file format.", + "homepage": "http://ne-on.org", + "keywords": [ + "export", + "import", + "neon", + "nette", + "yaml" + ], + "time": "2018-03-21T12:12:21+00:00" + }, + { + "name": "nette/php-generator", + "version": "v3.0.5", + "source": { + "type": "git", + "url": "https://github.com/nette/php-generator.git", + "reference": "ea90209c2e8a7cd087b2742ca553c047a8df5eff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/php-generator/zipball/ea90209c2e8a7cd087b2742ca553c047a8df5eff", + "reference": "ea90209c2e8a7cd087b2742ca553c047a8df5eff", + "shasum": "" + }, + "require": { + "nette/utils": "^2.4.2 || ~3.0.0", + "php": ">=7.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "^2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.2 features.", + "homepage": "https://nette.org", + "keywords": [ + "code", + "nette", + "php", + "scaffolding" + ], + "time": "2018-08-09T14:32:27+00:00" + }, + { + "name": "nette/robot-loader", + "version": "v3.1.0", + "source": { + "type": "git", + "url": "https://github.com/nette/robot-loader.git", + "reference": "fc76c70e740b10f091e502b2e393d0be912f38d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/robot-loader/zipball/fc76c70e740b10f091e502b2e393d0be912f38d4", + "reference": "fc76c70e740b10f091e502b2e393d0be912f38d4", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "nette/finder": "^2.3 || ^3.0", + "nette/utils": "^2.4 || ^3.0", + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "^2.0", + "tracy/tracy": "^2.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.", + "homepage": "https://nette.org", + "keywords": [ + "autoload", + "class", + "interface", + "nette", + "trait" + ], + "time": "2018-08-13T14:19:06+00:00" + }, + { + "name": "nette/utils", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "17b9f76f2abd0c943adfb556e56f2165460b15ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/17b9f76f2abd0c943adfb556e56f2165460b15ce", + "reference": "17b9f76f2abd0c943adfb556e56f2165460b15ce", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "conflict": { + "nette/nette": "<2.2" + }, + "require-dev": { + "nette/tester": "~2.0", + "tracy/tracy": "^2.3" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize() and toAscii()", + "ext-intl": "for script transliteration in Strings::webalize() and toAscii()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-xml": "to use Strings::length() etc. when mbstring is not available" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ], + "files": [ + "src/loader.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0", + "GPL-3.0" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "time": "2018-09-18T10:22:16+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.1.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "d0230c5c77a7e3cfa69446febf340978540958c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/d0230c5c77a7e3cfa69446febf340978540958c0", + "reference": "d0230c5c77a7e3cfa69446febf340978540958c0", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.5 || ^7.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "time": "2018-10-10T09:24:14+00:00" + }, + { + "name": "php-cs-fixer/diff", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/PHP-CS-Fixer/diff.git", + "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756", + "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.23 || ^6.4.3", + "symfony/process": "^3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "SpacePossum" + } + ], + "description": "sebastian/diff v2 backport support for PHP5.6", + "homepage": "https://github.com/PHP-CS-Fixer", + "keywords": [ + "diff" + ], + "time": "2018-02-15T16:58:55+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "0.3", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "ed3223362174b8067729930439e139794e9e514a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ed3223362174b8067729930439e139794e9e514a", + "reference": "ed3223362174b8067729930439e139794e9e514a", + "shasum": "" + }, + "require": { + "php": "~7.1" + }, + "require-dev": { + "consistence/coding-standard": "^2.0.0", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "phing/phing": "^2.16.0", + "phpstan/phpstan": "^0.10@dev", + "phpunit/phpunit": "^6.3", + "slevomat/coding-standard": "^3.3.0", + "symfony/process": "^3.4 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.3-dev" + } + }, + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "time": "2018-06-20T17:48:01+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "0.10.6", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "f0252a5ab6b4a293fb25f218d9c64386f272280f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f0252a5ab6b4a293fb25f218d9c64386f272280f", + "reference": "f0252a5ab6b4a293fb25f218d9c64386f272280f", + "shasum": "" + }, + "require": { + "composer/xdebug-handler": "^1.3.0", + "jean85/pretty-package-versions": "^1.0.3", + "nette/bootstrap": "^2.4 || ^3.0", + "nette/di": "^2.4.7 || ^3.0", + "nette/robot-loader": "^3.0.1", + "nette/utils": "^2.4.5 || ^3.0", + "nikic/php-parser": "^4.0.2", + "php": "~7.1", + "phpstan/phpdoc-parser": "^0.3", + "symfony/console": "~3.2 || ~4.0", + "symfony/finder": "~3.2 || ~4.0" + }, + "conflict": { + "symfony/console": "3.4.16 || 4.1.5" + }, + "require-dev": { + "brianium/paratest": "^2.0", + "consistence/coding-standard": "^3.5", + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", + "ext-gd": "*", + "ext-intl": "*", + "ext-mysqli": "*", + "ext-zip": "*", + "jakub-onderka/php-parallel-lint": "^1.0", + "localheinz/composer-normalize": "~0.9.0", + "phing/phing": "^2.16.0", + "phpstan/phpstan-deprecation-rules": "^0.10.2", + "phpstan/phpstan-php-parser": "^0.10", + "phpstan/phpstan-phpunit": "^0.10", + "phpstan/phpstan-strict-rules": "^0.10", + "phpunit/phpunit": "^7.0", + "slevomat/coding-standard": "^4.7.2", + "squizlabs/php_codesniffer": "^3.3.2" + }, + "bin": [ + "bin/phpstan" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.10-dev" + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": [ + "src/", + "build/PHPStan" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "time": "2018-12-04T07:28:04+00:00" + }, + { + "name": "sensiolabs/security-checker", + "version": "v5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sensiolabs/security-checker.git", + "reference": "46be3f58adac13084497961e10eed9a7fb4d44d1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/46be3f58adac13084497961e10eed9a7fb4d44d1", + "reference": "46be3f58adac13084497961e10eed9a7fb4d44d1", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.0", + "php": ">=5.5.9", + "symfony/console": "~2.7|~3.0|~4.0" + }, + "bin": [ + "security-checker" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "psr-4": { + "SensioLabs\\Security\\": "SensioLabs/Security" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien.potencier@gmail.com" + } + ], + "description": "A security checker for your composer.lock", + "time": "2018-12-19T17:14:59+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { "Symfony\\Polyfill\\Php72\\": "" }, "files": [ @@ -4318,29 +5382,30 @@ "portable", "shim" ], - "time": "2018-08-06T14:22:27+00:00" + "time": "2018-09-21T13:07:52+00:00" }, { "name": "symfony/stopwatch", - "version": "v4.1.4", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "966c982df3cca41324253dc0c7ffe76b6076b705" + "reference": "ec076716412274e51f8a7ea675d9515e5c311123" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/966c982df3cca41324253dc0c7ffe76b6076b705", - "reference": "966c982df3cca41324253dc0c7ffe76b6076b705", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ec076716412274e51f8a7ea675d9515e5c311123", + "reference": "ec076716412274e51f8a7ea675d9515e5c311123", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.1.3", + "symfony/contracts": "^1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -4367,7 +5432,7 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2018-07-26T11:00:49+00:00" + "time": "2018-11-11T19:52:12+00:00" } ], "aliases": [], diff --git a/config/packages/security_checker.yaml b/config/packages/security_checker.yaml new file mode 100644 index 0000000..0f9cf00 --- /dev/null +++ b/config/packages/security_checker.yaml @@ -0,0 +1,9 @@ +services: + SensioLabs\Security\SecurityChecker: + public: false + + SensioLabs\Security\Command\SecurityCheckerCommand: + arguments: ['@SensioLabs\Security\SecurityChecker'] + public: false + tags: + - { name: console.command, command: 'security:check' } diff --git a/src/Controller/DokoController.php b/src/Controller/DokoController.php index 905ac9c..7197ce1 100644 --- a/src/Controller/DokoController.php +++ b/src/Controller/DokoController.php @@ -1,4 +1,4 @@ -em = $em; + $this->translator = $translator; + $this->session = $session; + $this->paginator = $paginator; + } + /** * @Route("/") - * - * @return Response */ public function indexAction(): Response { @@ -66,20 +94,11 @@ public function indexAction(): Response * creates a new player * * @Route("/createPlayer") - * - * @param Request $request - * - * @throws \LogicException - * @throws \Doctrine\ORM\ORMInvalidArgumentException - * @throws \Doctrine\ORM\ORMException - * @throws \Doctrine\ORM\OptimisticLockException - * - * @return Response */ public function createPlayerAction(Request $request): Response { $player = new Player(); - $buttonTranslation = $this->get('translator')->trans('create', [], 'create_player'); + $buttonTranslation = $this->translator->trans('create', [], 'create_player'); /* @var FormInterface $playerForm */ $playerForm = $this->createFormBuilder($player) @@ -90,8 +109,8 @@ public function createPlayerAction(Request $request): Response $playerForm->handleRequest($request); if ($playerForm->isSubmitted()) { - $this->getEm()->persist($player); - $this->getEm()->flush($player); + $this->em->persist($player); + $this->em->flush(); return $this->redirectToRoute('app_doko_index'); } @@ -106,20 +125,10 @@ public function createPlayerAction(Request $request): Response * enter a new game with its points * * @Route("/enterPoints") - * - * @param Request $request - * - * @throws \Doctrine\ORM\ORMInvalidArgumentException - * @throws \OutOfBoundsException - * @throws \LogicException - * @throws \Doctrine\ORM\ORMException - * @throws \Doctrine\ORM\OptimisticLockException - * - * @return Response */ public function enterPointsAction(Request $request): Response { - $pointsForm = $this->createPointsForm($this->get('session')->get('playerIds', [])); + $pointsForm = $this->createPointsForm($this->session->get('playerIds', [])); $pointsForm->handleRequest($request); @@ -163,10 +172,10 @@ public function enterPointsAction(Request $request): Response $participants->add($participant); } $round->setParticipants($participants); - $this->getEm()->persist($round); - $this->getEm()->flush($round); + $this->em->persist($round); + $this->em->flush(); - $this->get('session')->set('playerIds', $playerIds); + $this->session->set('playerIds', $playerIds); /** @var SubmitButton $saveButton */ $saveButton = $pointsForm->get('save'); @@ -185,12 +194,6 @@ public function enterPointsAction(Request $request): Response * Show scoreboard * * @Route("/showScoreboard") - * - * @param Request $request - * - * @throws \LogicException - * - * @return Response */ public function showScoreboardAction(Request $request): Response { @@ -208,14 +211,6 @@ public function showScoreboardAction(Request $request): Response * Show player stats * * @Route("/playerstats/{playerId}") - * - * @param Request $request - * @param int $playerId - * - * @throws \LogicException - * @throws \Doctrine\DBAL\DBALException - * - * @return Response */ public function getPlayerStats(Request $request, int $playerId): Response { @@ -242,14 +237,6 @@ public function getPlayerStats(Request $request, int $playerId): Response ); } - /** - * @param int $playerId - * - * @throws \LogicException - * @throws \Doctrine\DBAL\DBALException - * - * @return array - */ private function calculateStreaks(int $playerId): array { $sql1 = 'SELECT round.creation_date AS GameDate, GR.points AS Result @@ -257,7 +244,7 @@ private function calculateStreaks(int $playerId): array JOIN round ON round.id = GR.round_id WHERE GR.player_id = :playerId'; - $sql = $this->getEm()->getConnection() + $sql = $this->em->getConnection() ->prepare($sql1); $sql->bindValue('playerId', $playerId); $sql->execute(); @@ -351,20 +338,12 @@ private function calculateGameResult(array $formData) return -2; } - /** - * @param array $playerIds - * - * @throws \LogicException - * - * @return FormInterface - */ private function createPointsForm(array $playerIds): FormInterface { $players = $this->getPlayers(); if (empty($playerIds)) { - $playersForInitialFilling = \array_slice($players, 0, 4); - foreach ($playersForInitialFilling as $initialPlayer) { + foreach (\array_slice($players, 0, 4) as $initialPlayer) { $playerIds[] = $initialPlayer->getId(); } } @@ -385,7 +364,7 @@ private function createPointsForm(array $playerIds): FormInterface $pointsForm->add('player' . $i . 'win', CheckboxType::class, ['required' => false]); } - $translator = $this->get('translator'); + $translator = $this->translator; $pointsForm->add('saveAndNew', SubmitType::class, ['label' => $translator->trans('save_and_new', [], 'buttons')]) ->add('save', SubmitType::class, ['label' => $translator->trans('save', [], 'buttons')]); @@ -394,29 +373,11 @@ private function createPointsForm(array $playerIds): FormInterface } /** - * @throws \LogicException - * - * @return EntityManager - */ - private function getEm(): EntityManager - { - if ($this->em === null) { - $this->em = $this->getDoctrine()->getManager(); - - return $this->em; - } - - return $this->em; - } - - /** - * @throws \LogicException - * * @return Player[] */ private function getPlayers(): array { - $builder = $this->getEm()->createQueryBuilder() + $builder = $this->em->createQueryBuilder() ->select(['player']) ->from('App:Player', 'player') ->addOrderBy('player.points', 'DESC'); @@ -424,38 +385,24 @@ private function getPlayers(): array return $builder->getQuery()->getResult(); } - /** - * @param int $id - * - * @throws \LogicException - * - * @return Player - */ private function getPlayerById(int $id): Player { - $playerRepo = $this->getEm()->getRepository('App:Player'); + /** @var Player $player */ + $player = $this->em->getRepository('App:Player')->find($id); - return $playerRepo->find($id); + return $player; } - /** - * @param Request $request - * - * @throws \LogicException - * - * @return PaginationInterface - */ private function getRounds(Request $request): PaginationInterface { - $queryBuilder = $this->getEm()->createQueryBuilder() + $queryBuilder = $this->em->createQueryBuilder() ->select(['round']) ->from('App:Round', 'round') ->addOrderBy('round.creationDate', 'DESC'); $query = $queryBuilder->getQuery(); - $paginator = $this->get('knp_paginator'); - $pagination = $paginator->paginate( + $pagination = $this->paginator->paginate( $query, $request->query->getInt('page', 1) ); @@ -463,17 +410,9 @@ private function getRounds(Request $request): PaginationInterface return $pagination; } - /** - * @param Player $player - * @param Request $request - * - * @throws \LogicException - * - * @return PaginationInterface - */ private function getRoundsByPlayer(Player $player, Request $request): PaginationInterface { - $queryBuilder = $this->getEm()->createQueryBuilder() + $queryBuilder = $this->em->createQueryBuilder() ->select(['round']) ->from('App:Round', 'round') ->join('round.participants', 'participant') @@ -483,8 +422,7 @@ private function getRoundsByPlayer(Player $player, Request $request): Pagination $query = $queryBuilder->getQuery(); - $paginator = $this->get('knp_paginator'); - $pagination = $paginator->paginate( + $pagination = $this->paginator->paginate( $query, $request->query->getInt('page', 1) ); @@ -492,14 +430,6 @@ private function getRoundsByPlayer(Player $player, Request $request): Pagination return $pagination; } - /** - * @param Player $player - * - * @throws \LogicException - * @throws \Doctrine\DBAL\DBALException - * - * @return array - */ private function getPartnersOfPlayer(Player $player): array { $sql = 'SELECT partnerPlayer.name AS name, SUM(participant.points) AS points @@ -512,15 +442,10 @@ private function getPartnersOfPlayer(Player $player): array GROUP BY partner.player_id ORDER BY points DESC;'; - return $this->getEm()->getConnection()->executeQuery($sql, ['playerId' => $player->getId()])->fetchAll(); + return $this->em->getConnection()->executeQuery($sql, ['playerId' => $player->getId()])->fetchAll(); } /** - * @param int $playerId - * - * @throws \LogicException - * @throws \Doctrine\DBAL\DBALException - * * @return array|bool */ private function getWinLossRatio(int $playerId) @@ -530,7 +455,7 @@ private function getWinLossRatio(int $playerId) WHERE player_id = :playerId GROUP BY player_id'; - $sql = $this->getEm()->getConnection()->prepare($sql); + $sql = $this->em->getConnection()->prepare($sql); $sql->bindValue('playerId', $playerId); $sql->execute(); diff --git a/src/Entity/.gitignore b/src/Entity/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/src/Entity/Participant.php b/src/Entity/Participant.php index d3e4a50..82e4bd6 100644 --- a/src/Entity/Participant.php +++ b/src/Entity/Participant.php @@ -1,4 +1,4 @@ -round = $round; $this->player = $player; $this->points = $points; } - /** - * @return int - */ - public function getId() + public function getId(): int { return $this->id; } - /** - * @return Round - */ - public function getRound() + public function getRound(): Round { return $this->round; } - /** - * @return Player - */ - public function getPlayer() + public function setRound(Round $round): Participant + { + $this->round = $round; + + return $this; + } + + public function getPlayer(): Player { return $this->player; } - /** - * @return int - */ - public function getPoints() + public function setPlayer(Player $player): Participant + { + $this->player = $player; + + return $this; + } + + public function getPoints(): int { return $this->points; } - /** - * @param int $points - */ - public function setPoints($points) + public function setPoints(int $points): Participant { $this->points = $points; + + return $this; } } diff --git a/src/Entity/Player.php b/src/Entity/Player.php index b41b4df..e14306b 100644 --- a/src/Entity/Player.php +++ b/src/Entity/Player.php @@ -1,4 +1,4 @@ -id; } - /** - * Set name - * - * @param string $name - * - * @return Player - */ - public function setName($name) + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): Player { $this->name = $name; return $this; } - /** - * Get name - * - * @return string - */ - public function getName() + public function getPoints(): int { - return $this->name; + return $this->points; } - /** - * Set points - * - * @param int $points - * - * @return Player - */ - public function setPoints($points) + public function setPoints(int $points): Player { $this->points = $points; return $this; } - - /** - * Get points - * - * @return int - */ - public function getPoints() - { - return $this->points; - } } diff --git a/src/Entity/Round.php b/src/Entity/Round.php index 74f9dd1..10f9cd7 100644 --- a/src/Entity/Round.php +++ b/src/Entity/Round.php @@ -1,4 +1,4 @@ -creationDate = new DateTime(); $this->points = $points; @@ -85,75 +79,62 @@ public function __construct($points, $isBock) $this->participants = new ArrayCollection(); } - /** - * @return int - */ - public function getId() + public function getId(): int { return $this->id; } - /** - * @return DateTime - */ - public function getCreationDate() + public function getCreationDate(): DateTime { return $this->creationDate; } - /** - * @return int - */ - public function getPoints() + public function setCreationDate(DateTime $creationDate): Round { - return $this->points; + $this->creationDate = $creationDate; + + return $this; } - /** - * @return bool - */ - public function isBock() + public function getPoints(): int { - return $this->bock; + return $this->points; } - /** - * @return ArrayCollection|Participant[] - */ - public function getParticipants() + public function setPoints(int $points): Round { - return $this->participants; + $this->points = $points; + + return $this; } - /** - * @param ArrayCollection $participants - */ - public function setParticipants($participants) + public function getBock(): bool { - $this->participants = $participants; + return $this->bock; } - /** - * @param DateTime $creationDate - */ - public function setCreationDate(DateTime $creationDate) + public function setBock(bool $bock): Round { - $this->creationDate = $creationDate; + $this->bock = $bock; + + return $this; } /** - * @param int $points + * @return Participant[]|ArrayCollection */ - public function setPoints($points) + public function getParticipants() { - $this->points = $points; + return $this->participants; } /** - * @param bool $bock + * @param Participant[]|ArrayCollection $participants */ - public function setBock($bock) + public function setParticipants(ArrayCollection $participants): Round { - $this->bock = $bock; + $this->participants = $participants; + + return $this; } } diff --git a/src/Kernel.php b/src/Kernel.php index 589d538..899512a 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -1,4 +1,4 @@ -setParameter('container.autowiring.strict_mode', true); $container->setParameter('container.dumper.inline_class_loader', true); @@ -70,7 +70,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa $loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob'); } - protected function configureRoutes(RouteCollectionBuilder $routes) + protected function configureRoutes(RouteCollectionBuilder $routes): void { $confDir = $this->getProjectDir() . '/config'; if (is_dir($confDir . '/routes/')) { diff --git a/src/Migrations/.gitignore b/src/Migrations/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/src/Repository/.gitignore b/src/Repository/.gitignore deleted file mode 100644 index e69de29..0000000