Skip to content

Commit

Permalink
Merge pull request #35 from klnjmm/feature/symfony-compatibility
Browse files Browse the repository at this point in the history
Rendre compatible avec Symfony 6.0
  • Loading branch information
valentin-claras committed Apr 28, 2022
2 parents b11db95 + ce7b2c5 commit 76f4cd8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ jobs:
strategy:
matrix:
php-version: [ '7.4', '8.0', '8.1' ]
symfony-version: ['^4.4', '^5.0', '^5.3']
symfony-version: ['^4.4', '^5.0', '^5.3', '^6.0']
exclude:
- php-version: '7.4'
symfony-version: '^6.0'
fail-fast: false
steps:
- uses: actions/checkout@master
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"require-dev": {
"atoum/atoum": "^4.0",
"m6web/php-cs-fixer-config": "^2.0",
"symfony/dependency-injection": "^4.4||^5.0",
"symfony/event-dispatcher": "^4.4||^5.0",
"symfony/config": "^4.4||^5.0",
"symfony/yaml": "^4.4||^5.0",
"symfony/http-foundation": "^4.4||^5.0",
"symfony/http-kernel": "^4.4||^5.0"
"symfony/dependency-injection": "^4.4||^5.0||^6.0",
"symfony/event-dispatcher": "^4.4||^5.0||^6.0",
"symfony/config": "^4.4||^5.0||^6.0",
"symfony/yaml": "^4.4||^5.0||^6.0",
"symfony/http-foundation": "^4.4||^5.0||^6.0",
"symfony/http-kernel": "^4.4||^5.0||^6.0"
},
"autoload": {
"psr-0": { "": "src/" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ public function load(array $configs, ContainerBuilder $container)
}
}

/**
* @return string
*/
public function getAlias()
public function getAlias(): string
{
return 'm6web_elasticsearch';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace M6Web\Bundle\ElasticsearchBundle;

use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
Expand All @@ -12,7 +13,7 @@ class M6WebElasticsearchBundle extends Bundle
/**
* @return DependencyInjection\M6WebElasticsearchExtension|\Symfony\Component\DependencyInjection\Extension\ExtensionInterface|null
*/
public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
return new DependencyInjection\M6WebElasticsearchExtension();
}
Expand Down

0 comments on commit 76f4cd8

Please sign in to comment.