Skip to content

Commit

Permalink
Upgrade to Symfony 7.0 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Dec 1, 2023
1 parent c6e968d commit 2f9d844
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ jobs:
php-version:
- '8.2'
symfony-version:
- '6.0'
- '6.1'
- '6.2'
- '6.3'
- '6.4'
- '7.0'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v4
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Features 🎁

- [x] Compatible with latest [Centrifugo 5.1.1](https://github.com/centrifugal/centrifugo/releases/tag/v5.1.1) 🚀
- [x] Compatible with latest [Centrifugo 5.1.2](https://github.com/centrifugal/centrifugo/releases/tag/v5.1.2) 🚀
- [x] Wrapper over [Centrifugo HTTP API](https://centrifugal.dev/docs/server/server_api#http-api) 🔌
- [X] Authentication with JWT token (HMAC algorithm) for [anonymous](./Resources/docs/authentication.md#anonymous), [authenticated user](./Resources/docs/authentication.md#authenticated-user) and [private channel](./Resources/docs/authentication.md#private-channel) 🗝️
- [x] [Batch request](./Resources/docs/centrifugo_service_methods.md#batch-request) in [JSON streaming format](https://en.wikipedia.org/wiki/JSON_streaming) 💪
Expand All @@ -23,14 +23,21 @@
## Requirements 🧐

* PHP >= 8.2
* Symfony 6.0, 6.1, 6.2, 6.3, 6.4
* Symfony 7.0

## Installation 🌱

```bash
$ composer req fresh/centrifugo-bundle
```

##### Choose the version you need

| Bundle Version (X.Y.Z) | PHP | Symfony | Comment |
|:----------------------:|:--------:|:-------:|:--------------------|
| `5.0.*` | `>= 8.2` | `7.*` | **Current version** |
| `4.1.*` | `>= 8.2` | `6.*` | Previous version |

By default, [Symfony Flex](https://flex.symfony.com) adds this bundle to the `config/bundles.php` file and adds required environment variables into `.env` file.
In case when you ignored `contrib-recipe` during bundle installation it would not be done. Then you have to do this manually.

Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"require": {
"php": ">=8.2",
"fresh/datetime": "^3.0",
"symfony/console": "~6.0",
"symfony/config": "~6.0",
"symfony/dependency-injection": "~6.0",
"symfony/framework-bundle": "~6.0",
"symfony/http-client": "~6.0",
"symfony/http-foundation": "~6.0",
"symfony/http-kernel": "~6.0",
"symfony/security-core": "~6.0",
"symfony/validator": "~6.0"
"symfony/console": "~7.0",
"symfony/config": "~7.0",
"symfony/dependency-injection": "~7.0",
"symfony/framework-bundle": "~7.0",
"symfony/http-client": "~7.0",
"symfony/http-foundation": "~7.0",
"symfony/http-kernel": "~7.0",
"symfony/security-core": "~7.0",
"symfony/validator": "~7.0"
},
"require-dev": {
"escapestudios/symfony2-coding-standard": "^3.13",
Expand All @@ -41,9 +41,9 @@
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.4",
"phpunit/phpunit": "^10.5",
"seec/phpunit-consecutive-params": "^1.1",
"slam/phpstan-extensions": "^6.0"
"slam/phpstan-extensions": "^6.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2f9d844

Please sign in to comment.