From 0d140642e0af6ef84acae59d8c729c91bd460e37 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 6 Oct 2015 14:38:55 +0200 Subject: [PATCH] don't allow to install the split Security packages Currently, you would be able to install the Security component fromm Symfony 2.3 together with one of the split packages from a higher Symfony vesion like this: ```json { "require": { "symfony/symfony": "2.3.*", "symfony/security-core": "~2.7" } } ``` However, you will end up with classes being present twice. This must be reverted after merging up in the `2.7` branch. --- composer.json | 3 +++ src/Symfony/Component/Security/composer.json | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/composer.json b/composer.json index bf85b666a6547..49489eb282d4c 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,10 @@ "symfony/proxy-manager-bridge": "self.version", "symfony/routing": "self.version", "symfony/security": "self.version", + "symfony/security-acl": "self.version", "symfony/security-bundle": "self.version", + "symfony/security-core": "self.version", + "symfony/security-http": "self.version", "symfony/serializer": "self.version", "symfony/stopwatch": "self.version", "symfony/swiftmailer-bridge": "self.version", diff --git a/src/Symfony/Component/Security/composer.json b/src/Symfony/Component/Security/composer.json index 2026fc48100e8..4c2b07036c359 100644 --- a/src/Symfony/Component/Security/composer.json +++ b/src/Symfony/Component/Security/composer.json @@ -32,6 +32,11 @@ "psr/log": "~1.0", "ircmaxell/password-compat": "~1.0" }, + "replace": { + "symfony/security-acl": "self.version", + "symfony/security-core": "self.version", + "symfony/security-http": "self.version" + }, "suggest": { "symfony/class-loader": "", "symfony/finder": "",