Skip to content

Commit 7d0e920

Browse files
committed
Add Symfony 6 support
1 parent e6cad20 commit 7d0e920

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

.travis.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ matrix:
1414
fast_finish: true
1515
include:
1616
# Minimum supported dependencies with the latest and oldest PHP version
17+
- php: 8.1
18+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=disabled=1"
1719
- php: 8.0
1820
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=disabled=1"
1921
# Minimum PHP 7.4 / Symfony 5 throws "require(): read of xxx bytes failed with errno=13 Permission denied" when
@@ -24,15 +26,17 @@ matrix:
2426
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="disabled=1"
2527

2628
# Test the latest stable release
27-
- php: 7.3
28-
env: SYMFONY_DEPRECATIONS_HELPER="max[direct]=0"
29-
- php: 7.4
30-
env: SYMFONY_DEPRECATIONS_HELPER="max[direct]=0"
29+
- php: 8.1
30+
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
3131
- php: 8.0
3232
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
33+
- php: 7.4
34+
env: SYMFONY_DEPRECATIONS_HELPER="max[direct]=0"
35+
- php: 7.3
36+
env: SYMFONY_DEPRECATIONS_HELPER="max[direct]=0"
3337

3438
# Latest commit to master
35-
- php: 8.0
39+
- php: 8.1
3640
env: STABILITY="dev"
3741

3842
allow_failures:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Spotify Web API Bundle
22
======================
33

4-
[![Build Status](https://api.travis-ci.com/calliostro/spotify-web-api-bundle.svg)](https://www.travis-ci.com/github/calliostro/spotify-web-api-bundle)
4+
[![Build Status](https://app.travis-ci.com/calliostro/spotify-web-api-bundle.svg?branch=main)](https://www.travis-ci.com/github/calliostro/spotify-web-api-bundle)
55
[![Version](https://poser.pugx.org/calliostro/spotify-web-api-bundle/version)](//packagist.org/packages/calliostro/spotify-web-api-bundle)
66
[![License](https://poser.pugx.org/calliostro/spotify-web-api-bundle/license)](//packagist.org/packages/calliostro/spotify-web-api-bundle)
77

88
This bundle provides a simple integration of [jwilsson/spotify-web-api-php](https://github.com/jwilsson/spotify-web-api-php)
9-
into Symfony 5.
9+
into Symfony 5 or Symfony 6.
1010

1111

1212
Installation

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"name": "calliostro/spotify-web-api-bundle",
3-
"description": "Spotify Web API client for PHP 7.3 or 8.0 and Symfony 5",
3+
"description": "Spotify Web API client for Symfony 5 or Symfony 6",
44
"type": "symfony-bundle",
55
"require": {
66
"php": "^7.3 || ^8.0",
77
"jwilsson/spotify-web-api-php": "^5.0",
8-
"symfony/config": "^5.0",
9-
"symfony/dependency-injection": "^5.0",
10-
"symfony/http-kernel": "^5.0"
8+
"symfony/config": "^5.0 || ^6.0",
9+
"symfony/dependency-injection": "^5.0 || ^6.0",
10+
"symfony/http-kernel": "^5.0 || ^6.0"
1111
},
1212
"autoload": {
1313
"psr-4": {
1414
"Calliostro\\SpotifyWebApiBundle\\": "src/"
1515
}
1616
},
1717
"require-dev": {
18-
"symfony/phpunit-bridge": "^5.0"
18+
"symfony/phpunit-bridge": "^5.0 || ^6.0"
1919
},
2020
"autoload-dev": {
2121
"psr-4": {

src/CalliostroSpotifyWebApiBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
use Symfony\Component\HttpKernel\Bundle\Bundle;
66

7-
class CalliostroSpotifyWebApiBundle extends Bundle
7+
final class CalliostroSpotifyWebApiBundle extends Bundle
88
{
99
}

tests/FunctionalTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\DependencyInjection\ContainerBuilder;
1111
use Symfony\Component\HttpKernel\Kernel;
1212

13-
class FunctionalTest extends TestCase
13+
final class FunctionalTest extends TestCase
1414
{
1515
public function testServiceWiring(): void
1616
{
@@ -54,7 +54,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
5454
});
5555
}
5656

57-
public function getCacheDir()
57+
public function getCacheDir(): string
5858
{
5959
return $this->getProjectDir() . '/var/cache/'.$this->environment.'/'.spl_object_hash($this);
6060
}

0 commit comments

Comments
 (0)