Skip to content

Commit

Permalink
Allow Symfony 7 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 16, 2024
1 parent ab0f1ad commit b2a589d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 21 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,30 @@ jobs:
elasticsearch-package-constraint: '^7.0'
env: {}

- php-version: '8.2'
job-name-prefix: 'Allow to fail: '
elasticsearch-version: '7.11.1'
lint: true
symfony-version: '^6.0'
elasticsearch-package-constraint: '^7.0'
env: {}

- php-version: '8.3'
job-name-prefix: 'Allow to fail: '
elasticsearch-version: '7.11.1'
lint: true
symfony-version: '^6.0'
elasticsearch-package-constraint: '^7.0'
env: {}

- php-version: '8.4'
job-name-prefix: 'Allow to fail: '
elasticsearch-version: '7.11.1'
lint: true
symfony-version: '^6.0'
elasticsearch-package-constraint: '^7.0'
env: {}

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }}
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Configuration implements ConfigurationInterface
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('ongr_elasticsearch');

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
This is a fork of the [ongr/elasticsearch-bundle](https://github.com/ongr-io/elasticsearchbundle).
With some basic changes to support wider range of Symfony Versions.

| Version | Supported Elasticsearch Version | Supported Symfony Version |
|-----------|---------------------------------|--------------------------------|
| `5.x` | `^7.0, ^6.0, ^5.0` | `^6.0, ^5.0, ^4.0, ^3.4, ^2.8` |
| `1.x` | `^1.0, ^2.0` | `^3.0, ^2.7` |
| Version | Supported Elasticsearch Version | Supported Symfony Version |
|-----------|---------------------------------|--------------------------------------|
| `5.x` | `^7.0, ^6.0, ^5.0` | `^7.0, ^6.0, ^5.0, ^4.0, ^3.4, ^2.8` |
| `1.x` | `^1.0, ^2.0` | `^3.0, ^2.7` |

## Documentation

Expand Down
32 changes: 16 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@
],
"require": {
"php": "^7.2|^8.0",
"symfony/framework-bundle": "^2.8|^3.0|^4|^5|^6",
"symfony/console": "^2.8|^3.0|^4|^5|^6",
"symfony/stopwatch": "^2.8|^3.0|^4|^5|^6",
"symfony/templating": "^2.8|^3.0|^4|^5|^6",
"symfony/asset": "^2.8|^3.0|^4|^5|^6",
"symfony/framework-bundle": "^2.8|^3.0|^4|^5|^6|^7",
"symfony/console": "^2.8|^3.0|^4|^5|^6|^7",
"symfony/stopwatch": "^2.8|^3.0|^4|^5|^6|^7",
"symfony/templating": "^2.8|^3.0|^4|^5|^6|^7",
"symfony/asset": "^2.8|^3.0|^4|^5|^6|^7",
"doctrine/annotations": "^1.10",
"doctrine/inflector": "^1.0 || ^2.0",
"doctrine/cache": "~1.4",
"doctrine/collections": "~1.4",
"doctrine/collections": "^1.4|^2.0",
"monolog/monolog": "^1.10 || ^2.0 || ^3.0",
"handcraftedinthealps/elasticsearch-dsl": "^5.0.7.1|^6.2.0.1|^7.2.0.1",
"symfony/event-dispatcher": "^2.8|^3.0|^4|^5|^6"
"symfony/event-dispatcher": "^2.8|^3.0|^4|^5|^6|^7"
},
"require-dev": {
"mikey179/vfsstream": "~1.4",
"squizlabs/php_codesniffer": "^2.0|^3.0",
"symfony/browser-kit" : "^2.8|^3.4|^4|^5|^6",
"symfony/expression-language" : "^2.8|^3.4|^4|^5|^6",
"symfony/twig-bundle": "^2.8|^3.4|^4|^5|^6",
"symfony/serializer": "^2.8|^3.4|^4|^5|^6",
"symfony/yaml": "^2.8|^3.4|^4|^5|^6",
"symfony/phpunit-bridge": "^5.1|^6",
"symfony/dependency-injection": "^2.8|^3.4|^4|^5|^6",
"symfony/validator": "^2.8|^3.4|^4|^5|^6",
"symfony/options-resolver": "^2.8|^3.4|^4|^5|^6"
"symfony/browser-kit" : "^2.8|^3.4|^4|^5|^6|^7",
"symfony/expression-language" : "^2.8|^3.4|^4|^5|^6|^7",
"symfony/twig-bundle": "^2.8|^3.4|^4|^5|^6|^7",
"symfony/serializer": "^2.8|^3.4|^4|^5|^6|^7",
"symfony/yaml": "^2.8|^3.4|^4|^5|^6|^7",
"symfony/phpunit-bridge": "^5.1|^6|^7",
"symfony/dependency-injection": "^2.8|^3.4|^4|^5|^6|^7",
"symfony/validator": "^2.8|^3.4|^4|^5|^6|^7",
"symfony/options-resolver": "^2.8|^3.4|^4|^5|^6|^7"
},
"autoload": {
"psr-4": { "ONGR\\ElasticsearchBundle\\": "" },
Expand Down

0 comments on commit b2a589d

Please sign in to comment.