From 5bf49e577f3ffcc4cf9723eb7bc89cc0ab9f227b Mon Sep 17 00:00:00 2001 From: Maxim Tugaev Date: Wed, 4 Jul 2018 15:42:38 +0300 Subject: [PATCH] Added support for symfony 4 single deps * fix composer.json and travis --- .travis.yml | 15 ++++++++++++++- composer.json | 13 ++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b459e9ab..2fadf99c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,20 @@ matrix: SYMFONY_VERSION=^4.0 before_install: - - sh -c 'if [ "${SYMFONY_VERSION}" != "" ]; then composer require --no-update symfony/symfony=${SYMFONY_VERSION}; fi;'; + - | + if [ "${SYMFONY_VERSION}" != "" ]; then + packages="form dependency-injection config http-foundation http-kernel options-resolver security serializer" + devpackages="framework-bundle browser-kit templating expression-language" + for package in $packages + do + composer require --no-update symfony/"$package"=${SYMFONY_VERSION}; + done + for package in $devpackages + do + composer require --dev --no-update symfony/"$package"=${SYMFONY_VERSION}; + done + fi; + before_script: - echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` diff --git a/composer.json b/composer.json index c62761e8..1ba7a09c 100644 --- a/composer.json +++ b/composer.json @@ -21,10 +21,21 @@ ], "require": { "php": ">=5.6", - "symfony/symfony": "~2.8|~3.0|^4.0", + "symfony/form": "~2.8|~3.0|^4.0", + "symfony/dependency-injection": "~2.8|~3.0|^4.0", + "symfony/config": "~2.8|~3.0|^4.0", + "symfony/http-foundation": "~2.8|~3.0|^4.0", + "symfony/http-kernel": "~2.8|~3.0|^4.0", + "symfony/options-resolver": "~2.8|~3.0|^4.0", + "symfony/security": "~2.8|~3.0|^4.0", + "symfony/serializer": "~2.8|~3.0|^4.0", "twig/twig": ">=1.5.0" }, "require-dev": { + "symfony/framework-bundle": "~2.8|~3.0|^4.0", + "symfony/browser-kit": "~2.8|~3.0|^4.0", + "symfony/templating": "~2.8|~3.0|^4.0", + "symfony/expression-language": "~2.8|~3.0|^4.0", "phpunit/phpunit": "~5.7", "friendsofphp/php-cs-fixer": "^2.0", "satooshi/php-coveralls": "^1.0",