From 4625a673d225b057228257184779e730f71abbfe Mon Sep 17 00:00:00 2001 From: Piotr Antosik Date: Mon, 7 Dec 2015 23:12:28 +0100 Subject: [PATCH] add symfony 3.0 support --- Form/Type/AjaxAutoCompleteType.php | 8 ++++++++ composer.json | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Form/Type/AjaxAutoCompleteType.php b/Form/Type/AjaxAutoCompleteType.php index d1150c1..5ab02d4 100644 --- a/Form/Type/AjaxAutoCompleteType.php +++ b/Form/Type/AjaxAutoCompleteType.php @@ -77,10 +77,18 @@ public function getParent() } /** + * BC SF < 2.8 * {@inheritdoc} */ public function getName() { + return $this->getBlockPrefix(); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() { return 'ajax_auto_complete'; } } diff --git a/composer.json b/composer.json index afb0a37..24962ea 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,12 @@ ], "require": { "php": ">=5.4.0", - "symfony/framework-bundle": "~2.3", - "symfony/form": "~2.3", + "symfony/framework-bundle": "~2.3|~3.0", + "symfony/form": "~2.3|~3.0", "doctrine/orm": "~2.2,>=2.2.3" }, "require-dev": { - "symfony/yaml": "~2.3" + "symfony/yaml": "~2.3|~3.0" }, "autoload": { "psr-4": { "AntQa\\AjaxAutoCompleteBundle\\": "" }