Skip to content

Commit

Permalink
add symfony 3.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrantosik committed Dec 7, 2015
1 parent 6891dd8 commit 4625a67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Form/Type/AjaxAutoCompleteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\\": "" }
Expand Down

0 comments on commit 4625a67

Please sign in to comment.