From cb0307474e1cf495ee26ac417864d1e7f67245b0 Mon Sep 17 00:00:00 2001 From: Johannes Klauss Date: Tue, 19 Feb 2013 18:21:02 +0100 Subject: [PATCH 01/10] [DomCrawler] lowered parsed protocol string (fixes #6986) --- src/Symfony/Component/DomCrawler/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DomCrawler/Link.php b/src/Symfony/Component/DomCrawler/Link.php index 1804111f2e..31e8ba12f5 100644 --- a/src/Symfony/Component/DomCrawler/Link.php +++ b/src/Symfony/Component/DomCrawler/Link.php @@ -46,7 +46,7 @@ class Link */ public function __construct(\DOMNode $node, $currentUri, $method = 'GET') { - if (!in_array(substr($currentUri, 0, 4), array('http', 'file'))) { + if (!in_array(strtolower(substr($currentUri, 0, 4)), array('http', 'file'))) { throw new \InvalidArgumentException(sprintf('Current URI must be an absolute URL ("%s").', $currentUri)); } From e7e61fdcc9aa8533630e79701cbf6260ec19530f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 27 Oct 2012 15:29:28 +0200 Subject: [PATCH 02/10] merged branch jfcixmedia/2.1 (PR #5838) This PR was squashed before being merged into the master branch (closes #5838). Commits ------- 201f3e6 [Form] Fixed cannot unset string offsets in CsrfValidationListener Discussion ---------- [Form] Fixed cannot unset string offsets in CsrfValidationListener Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: - A php fatal error is happening when someone rewrite the entire form data for an object with a single input. ``` Fatal error: Cannot unset string offsets in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php on line 72 ``` Example: ```html

``` If someone alters the html to add a simple input at the bottom of the form like this one: ```html ``` The result will be a php fatal error. --------------------------------------------------------------------------- by bschussek at 2012-10-26T09:49:05Z Thank you for the pull request! Could you please reference the pull request in the test? ```php // https://github.com/symfony/symfony/pull/5838 public function testStringFormData() { ... ``` --------------------------------------------------------------------------- by jfcixmedia at 2012-10-26T10:21:29Z @bschussek Added, thanks. --- .../EventListener/CsrfValidationListener.php | 4 +- .../CsrfValidationListenerTest.php | 78 +++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php diff --git a/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php b/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php index 345a7ea9a9..976312f78f 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php +++ b/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php @@ -68,7 +68,9 @@ class CsrfValidationListener implements EventSubscriberInterface $form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form.')); } - unset($data[$this->fieldName]); + if (is_array($data)) { + unset($data[$this->fieldName]); + } } $event->setData($data); diff --git a/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php new file mode 100644 index 0000000000..65d649ab86 --- /dev/null +++ b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php @@ -0,0 +1,78 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Tests\Extension\Csrf\EventListener; + +use Symfony\Component\Form\FormEvent; +use Symfony\Component\Form\FormBuilder; +use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener; + +class CsrfValidationListenerTest extends \PHPUnit_Framework_TestCase +{ + protected $dispatcher; + protected $factory; + protected $csrfProvider; + + protected function setUp() + { + if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) { + $this->markTestSkipped('The "EventDispatcher" component is not available'); + } + + $this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); + $this->factory = $this->getMock('Symfony\Component\Form\FormFactoryInterface'); + $this->csrfProvider = $this->getMock('Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface'); + $this->form = $this->getBuilder('post') + ->setDataMapper($this->getDataMapper()) + ->getForm(); + } + + protected function tearDown() + { + $this->dispatcher = null; + $this->factory = null; + $this->csrfProvider = null; + $this->form = null; + } + + protected function getBuilder($name = 'name') + { + return new FormBuilder($name, null, $this->dispatcher, $this->factory, array('compound' => true)); + } + + protected function getForm($name = 'name') + { + return $this->getBuilder($name)->getForm(); + } + + protected function getDataMapper() + { + return $this->getMock('Symfony\Component\Form\DataMapperInterface'); + } + + protected function getMockForm() + { + return $this->getMock('Symfony\Component\Form\Tests\FormInterface'); + } + + // https://github.com/symfony/symfony/pull/5838 + public function testStringFormData() + { + $data = "XP4HUzmHPi"; + $event = new FormEvent($this->form, $data); + + $validation = new CsrfValidationListener('csrf', $this->csrfProvider, 'unknown'); + $validation->preBind($event); + + // Validate accordingly + $this->assertSame($data, $event->getData()); + } +} From f8812b28f356078a349dc757be37e8ed5ca2721d Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Thu, 21 Feb 2013 18:06:34 +0100 Subject: [PATCH 03/10] [Form] Fixed "label" option to accept the value "0" --- .../Component/Form/Extension/Core/Type/FieldType.php | 2 +- .../Component/Form/Extension/Core/Type/FieldTypeTest.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php b/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php index 8b4910805b..2f3d294b79 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php @@ -52,7 +52,7 @@ class FieldType extends AbstractType ->setAttribute('error_mapping', $options['error_mapping']) ->setAttribute('max_length', $options['max_length']) ->setAttribute('pattern', $options['pattern']) - ->setAttribute('label', $options['label'] ?: $this->humanize($builder->getName())) + ->setAttribute('label', strlen($options['label']) > 0 ? $options['label'] : $this->humanize($builder->getName())) ->setAttribute('attr', $options['attr'] ?: array()) ->setAttribute('invalid_message', $options['invalid_message']) ->setAttribute('invalid_message_parameters', $options['invalid_message_parameters']) diff --git a/tests/Symfony/Tests/Component/Form/Extension/Core/Type/FieldTypeTest.php b/tests/Symfony/Tests/Component/Form/Extension/Core/Type/FieldTypeTest.php index 69a61179bd..0e7e6f32f8 100644 --- a/tests/Symfony/Tests/Component/Form/Extension/Core/Type/FieldTypeTest.php +++ b/tests/Symfony/Tests/Component/Form/Extension/Core/Type/FieldTypeTest.php @@ -238,4 +238,12 @@ class FieldTypeTest extends TypeTestCase $form = $this->factory->create('field', null, array('attr' => '')); } + // https://github.com/symfony/symfony/issues/6862 + public function testPassZeroLabelToView() + { + $view = $this->factory->create('field', null, array('label' => 0))->createView(); + + $this->assertEquals('0', $view->get('label')); + } + } From b4b291feb069a276a91b31948d6e1e2052182cdb Mon Sep 17 00:00:00 2001 From: Maks Date: Fri, 22 Feb 2013 06:24:17 +0100 Subject: [PATCH 04/10] Fix docblock type --- src/Symfony/Bridge/Twig/Extension/FormExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Twig/Extension/FormExtension.php b/src/Symfony/Bridge/Twig/Extension/FormExtension.php index fa1aff10cf..0609fb675d 100644 --- a/src/Symfony/Bridge/Twig/Extension/FormExtension.php +++ b/src/Symfony/Bridge/Twig/Extension/FormExtension.php @@ -27,7 +27,7 @@ class FormExtension extends \Twig_Extension * This property is public so that it can be accessed directly from compiled * templates without having to call a getter, which slightly decreases performance. * - * @var \Symfony\Component\Form\FormRendererInterface + * @var TwigRendererInterface */ public $renderer; From 368f62f19c6b32d549ceabba5f786f66944aedc6 Mon Sep 17 00:00:00 2001 From: Eric Caron Date: Thu, 21 Feb 2013 10:53:30 -0600 Subject: [PATCH 05/10] Expanded fault-tolerance for unusual cookie dates --- src/Symfony/Component/BrowserKit/Cookie.php | 7 +++++++ src/Symfony/Component/BrowserKit/Tests/CookieTest.php | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index d4ae77f11d..6e1cdbf3c2 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -30,6 +30,8 @@ class Cookie 'D, d M Y H:i:s T', 'D, d-M-y H:i:s T', 'D, d-M-Y H:i:s T', + 'D, d-m-y H:i:s T', + 'D, d-m-Y H:i:s T', 'D M j G:i:s Y', 'D M d H:i:s Y T', ); @@ -203,6 +205,11 @@ class Cookie } } + // attempt a fallback for unusual formatting + if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) { + return $date->getTimestamp(); + } + throw new \InvalidArgumentException(sprintf('Could not parse date "%s".', $dateValue)); } diff --git a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php index 13e343a901..be53eea417 100644 --- a/src/Symfony/Component/BrowserKit/Tests/CookieTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/CookieTest.php @@ -56,9 +56,12 @@ class CookieTest extends \PHPUnit_Framework_TestCase return array( array('foo=bar; expires=Fri, 31-Jul-2020 08:49:37 GMT'), array('foo=bar; expires=Fri, 31 Jul 2020 08:49:37 GMT'), + array('foo=bar; expires=Fri, 31-07-2020 08:49:37 GMT'), + array('foo=bar; expires=Fri, 31-07-20 08:49:37 GMT'), array('foo=bar; expires=Friday, 31-Jul-20 08:49:37 GMT'), array('foo=bar; expires=Fri Jul 31 08:49:37 2020'), array('foo=bar; expires=\'Fri Jul 31 08:49:37 2020\''), + array('foo=bar; expires=Friday July 31st 2020, 08:49:37 GMT'), ); } @@ -86,7 +89,7 @@ class CookieTest extends \PHPUnit_Framework_TestCase public function testFromStringThrowsAnExceptionIfCookieDateIsNotValid() { $this->setExpectedException('InvalidArgumentException'); - Cookie::FromString('foo=bar; expires=foo'); + Cookie::FromString('foo=bar; expires=Flursday July 31st 2020, 08:49:37 GMT'); } public function testFromStringThrowsAnExceptionIfUrlIsNotValid() From 00fbb7ec32943f2869b3b094b3c1700051cd3d14 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Thu, 21 Feb 2013 18:06:34 +0100 Subject: [PATCH 06/10] [Form] Added test for "label" option to accept the value "0" --- .../Form/Tests/Extension/Core/Type/FormTypeTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php index 6fbddeb6a4..274bb912d3 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php @@ -659,4 +659,15 @@ class FormTypeTest extends TypeTestCase $this->assertSame('foo', $view->vars['data']); $this->assertSame('bar', $view->vars['value']); } + + // https://github.com/symfony/symfony/issues/6862 + public function testPassZeroLabelToView() + { + $view = $this->factory->create('form', null, array( + 'label' => '0' + )) + ->createView(); + + $this->assertSame('0', $view->vars['label']); + } } From b7bd630652794805cec788735e459e08787c1895 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Fri, 22 Feb 2013 13:48:44 +0100 Subject: [PATCH 07/10] [Form] Fixed TimeType not to render a "size" attribute in select tags --- .../Resources/views/Form/form_div_layout.html.twig | 3 ++- .../Resources/views/Form/time_widget.html.php | 7 ++++--- .../Component/Form/Tests/AbstractLayoutTest.php | 11 ++++++----- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig index 0e562e4142..2aa0bc9967 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig @@ -147,8 +147,9 @@ {% if widget == 'single_text' %} {{ block('form_widget_simple') }} {% else %} + {% set vars = widget == 'text' ? { 'attr': { 'size': 1 }} : {} %}
- {{ form_widget(form.hour, { 'attr': { 'size': '1' } }) }}:{{ form_widget(form.minute, { 'attr': { 'size': '1' } }) }}{% if with_seconds %}:{{ form_widget(form.second, { 'attr': { 'size': '1' } }) }}{% endif %} + {{ form_widget(form.hour, vars) }}:{{ form_widget(form.minute, vars) }}{% if with_seconds %}:{{ form_widget(form.second, vars) }}{% endif %}
{% endif %} {% endspaceless %} diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/time_widget.html.php b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/time_widget.html.php index 591bbf797a..42ed19ad5e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/time_widget.html.php +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/time_widget.html.php @@ -1,17 +1,18 @@ block($form, 'form_widget_simple'); ?> + array('size' => 1)) : array() ?>
block($form, 'widget_container_attributes') ?>> widget($form['hour'], array('attr' => array('size' => 1))); + echo $view['form']->widget($form['hour'], $vars); echo ':'; - echo $view['form']->widget($form['minute'], array('attr' => array('size' => 1))); + echo $view['form']->widget($form['minute'], $vars); if ($with_seconds) { echo ':'; - echo $view['form']->widget($form['second'], array('attr' => array('size' => 1))); + echo $view['form']->widget($form['second'], $vars); } ?>
diff --git a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php index aa3d46bf2e..8f809103e3 100644 --- a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php @@ -1531,11 +1531,11 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase [ ./select [@id="name_hour"] - [@size="1"] + [not(@size)] [./option[@value="4"][@selected="selected"]] /following-sibling::select [@id="name_minute"] - [@size="1"] + [not(@size)] [./option[@value="5"][@selected="selected"]] ] [count(./select)=2] @@ -1555,17 +1555,17 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase [ ./select [@id="name_hour"] - [@size="1"] + [not(@size)] [./option[@value="4"][@selected="selected"]] [count(./option)>23] /following-sibling::select [@id="name_minute"] - [@size="1"] + [not(@size)] [./option[@value="5"][@selected="selected"]] [count(./option)>59] /following-sibling::select [@id="name_second"] - [@size="1"] + [not(@size)] [./option[@value="6"][@selected="selected"]] [count(./option)>59] ] @@ -1616,6 +1616,7 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase [@type="time"] [@name="name"] [@value="04:05"] + [not(@size)] ' ); } From f0704aadf388e62ede2a8f58314e806676fb4394 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Fri, 22 Feb 2013 12:08:11 -0500 Subject: [PATCH 08/10] Update composer.json Bump doctrine common dependency for symfony 2.1 users --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 51c21e927a..58cd198336 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": ">=5.3.3", - "doctrine/common": ">2.2,<2.4-dev", + "doctrine/common": ">2.2,<2.5-dev", "twig/twig": ">=1.9.1,<2.0-dev" }, "replace": { From b2080c40e21389f87719f6cbe51b2be716622204 Mon Sep 17 00:00:00 2001 From: Johannes Klauss Date: Fri, 22 Feb 2013 08:28:58 +0100 Subject: [PATCH 09/10] [HttpFoundation] Remove Cache-Control when using https download via IE<9 (fixes #6750) --- .../Component/HttpFoundation/Response.php | 10 +++ .../HttpFoundation/Tests/ResponseTest.php | 69 +++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index cc540356cf..413ae36a40 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -253,6 +253,16 @@ class Response $this->headers->set('expires', -1); } + /** + * Check if we need to remove Cache-Control for ssl encrypted downloads when using IE < 9 + * @link http://support.microsoft.com/kb/323308 + */ + if (false !== stripos($this->headers->get('Content-Disposition'), 'attachment') && preg_match('/MSIE (.*?);/i', $request->server->get('HTTP_USER_AGENT'), $match) == 1 && true === $request->isSecure()) { + if(intval(preg_replace("/(MSIE )(.*?);/", "$2", $match[0])) < 9) { + $this->headers->remove('Cache-Control'); + } + } + return $this; } diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php index 6ca569c3ea..28b9d53732 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php @@ -326,6 +326,75 @@ class ResponseTest extends \PHPUnit_Framework_TestCase $this->assertEquals('text/css; charset=UTF-8', $response->headers->get('Content-Type')); } + public function testNoCacheControlHeaderOnAttachmentUsingHTTPSAndMSIE() + { + // Check for HTTPS and IE 8 + $request = new Request(); + $request->server->set('HTTPS', true); + $request->server->set('HTTP_USER_AGENT', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)'); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertFalse($response->headers->has('Cache-Control')); + + // Check for IE 10 and HTTPS + $request->server->set('HTTP_USER_AGENT', 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + + // Check for IE 9 and HTTPS + $request->server->set('HTTP_USER_AGENT', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 7.1; Trident/5.0)'); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + + // Check for IE 9 and HTTP + $request->server->set('HTTPS', false); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + + // Check for IE 8 and HTTP + $request->server->set('HTTP_USER_AGENT', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)'); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + + // Check for non-IE and HTTPS + $request->server->set('HTTPS', true); + $request->server->set('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.60 Safari/537.17'); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + + // Check for non-IE and HTTP + $request->server->set('HTTPS', false); + + $response = new Response(); + $response->headers->set('Content-Disposition', 'attachment; filename="fname.ext"'); + $response->prepare($request); + + $this->assertTrue($response->headers->has('Cache-Control')); + } + public function testPrepareDoesNothingIfContentTypeIsSet() { $response = new Response('foo'); From 06ebb0db870197eff70ac7811dbd4717642bd2e4 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Fri, 22 Feb 2013 13:53:49 -0500 Subject: [PATCH 10/10] Defined stable version point of Doctrine. --- composer.json | 2 +- src/Symfony/Bundle/FrameworkBundle/composer.json | 2 +- src/Symfony/Component/Routing/composer.json | 4 ++-- src/Symfony/Component/Security/composer.json | 4 ++-- src/Symfony/Component/Validator/composer.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 58cd198336..1d03bf524a 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": ">=5.3.3", - "doctrine/common": ">2.2,<2.5-dev", + "doctrine/common": "~2.2", "twig/twig": ">=1.9.1,<2.0-dev" }, "replace": { diff --git a/src/Symfony/Bundle/FrameworkBundle/composer.json b/src/Symfony/Bundle/FrameworkBundle/composer.json index 75faafe3a0..1e6c560dbe 100644 --- a/src/Symfony/Bundle/FrameworkBundle/composer.json +++ b/src/Symfony/Bundle/FrameworkBundle/composer.json @@ -25,7 +25,7 @@ "symfony/routing": "2.1.*", "symfony/templating": "2.1.*", "symfony/translation": "2.1.*", - "doctrine/common": ">=2.2,<2.4-dev" + "doctrine/common": "~2.2" }, "require-dev": { "symfony/finder": "2.1.*" diff --git a/src/Symfony/Component/Routing/composer.json b/src/Symfony/Component/Routing/composer.json index 70f46dac93..dbcaee8343 100644 --- a/src/Symfony/Component/Routing/composer.json +++ b/src/Symfony/Component/Routing/composer.json @@ -22,12 +22,12 @@ "symfony/config": "2.1.*", "symfony/yaml": "2.1.*", "symfony/http-kernel": "2.1.*", - "doctrine/common": ">=2.2,<2.4-dev" + "doctrine/common": "~2.2" }, "suggest": { "symfony/config": "2.1.*", "symfony/yaml": "2.1.*", - "doctrine/common": ">=2.2,<2.4-dev" + "doctrine/common": "~2.2" }, "autoload": { "psr-0": { "Symfony\\Component\\Routing": "" } diff --git a/src/Symfony/Component/Security/composer.json b/src/Symfony/Component/Security/composer.json index 3240140c17..ecf98c2fb8 100644 --- a/src/Symfony/Component/Security/composer.json +++ b/src/Symfony/Component/Security/composer.json @@ -25,8 +25,8 @@ "symfony/form": "2.1.*", "symfony/routing": "2.1.*", "symfony/validator": "2.1.*", - "doctrine/common": ">=2.2,<2.4-dev", - "doctrine/dbal": ">=2.2,<2.4-dev" + "doctrine/common": "~2.2", + "doctrine/dbal": "~2.2" }, "suggest": { "symfony/class-loader": "2.1.*", diff --git a/src/Symfony/Component/Validator/composer.json b/src/Symfony/Component/Validator/composer.json index 0f4a3ae94f..36a73cbdae 100644 --- a/src/Symfony/Component/Validator/composer.json +++ b/src/Symfony/Component/Validator/composer.json @@ -24,7 +24,7 @@ "symfony/yaml": "2.1.*" }, "suggest": { - "doctrine/common": ">=2.1,<2.4-dev", + "doctrine/common": "~2.1", "symfony/http-foundation": "2.1.*", "symfony/yaml": "2.1.*" },