Skip to content

Commit

Permalink
feat: support symfony 6 (#16)
Browse files Browse the repository at this point in the history
* WIP

* upgrade authentication to support symfony 6

* CS fixes

* fix: CS

* chore: require symfony 6
  • Loading branch information
wernerdweight authored Feb 25, 2023
1 parent 6193200 commit 2b60bd6
Show file tree
Hide file tree
Showing 47 changed files with 2,427 additions and 3,540 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
/var/
.phpunit.cache
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
language: php

php:
- '7.3'
- '7.4'
- '8.1'

script:
- composer install --ignore-platform-reqs
- composer outdated --direct
- composer update
- composer phpstan || true
- composer phpstan
- composer ecs
- composer phpmd
- composer phpunit
12 changes: 4 additions & 8 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ApiAuthBundle

Symfony bundle providing API authentication and authorization.

[![Build Status](https://travis-ci.org/wernerdweight/ApiAuthBundle.svg?branch=master)](https://travis-ci.org/wernerdweight/ApiAuthBundle)
[![Build Status](https://app.travis-ci.com/wernerdweight/ApiAuthBundle.svg?branch=master)](https://app.travis-ci.com/wernerdweight/ApiAuthBundle)
[![Latest Stable Version](https://poser.pugx.org/wernerdweight/api-auth-bundle/v/stable)](https://packagist.org/packages/wernerdweight/api-auth-bundle)
[![Total Downloads](https://poser.pugx.org/wernerdweight/api-auth-bundle/downloads)](https://packagist.org/packages/wernerdweight/api-auth-bundle)
[![License](https://poser.pugx.org/wernerdweight/api-auth-bundle/license)](https://packagist.org/packages/wernerdweight/api-auth-bundle)
Expand Down Expand Up @@ -99,7 +99,7 @@ security:
id: WernerDweight\ApiAuthBundle\Security\ApiClientProvider
# ...
encoders:
password_hashers:
App\Entity\User: # your user entity
algorithm: # ...
Expand All @@ -108,12 +108,8 @@ security:
# ...
main:
# ...
guard:
authenticators:
- WernerDweight\ApiAuthBundle\Security\ApiClientAuthenticator
# you should probably entirely disable anonymous access to the api
# anonymous: false
custom_authenticators:
- WernerDweight\ApiAuthBundle\Security\ApiClientAuthenticator
# if you want, disable storing the client in the session
# you MUST set stateless to `true` if you want to use `on behalf` access mode (see below)
Expand Down
25 changes: 12 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
}
],
"require": {
"php": ">=7.3.0",
"symfony/framework-bundle": "^4.0|^5.0",
"thecodingmachine/safe": "^1.0",
"wernerdweight/ra": "^1.0|^2.0",
"wernerdweight/enhanced-exception": "^1.0",
"symfony/security-bundle": "^4.3|^5.0",
"php": ">=8.1",
"symfony/framework-bundle": "^6.0",
"thecodingmachine/safe": "^2.4",
"wernerdweight/ra": "^2.0",
"wernerdweight/enhanced-exception": "^2.0",
"symfony/security-bundle": "^6.0",
"symfony/orm-pack": "^1.0|^2.0",
"wernerdweight/token-generator": "^1.0"
"wernerdweight/token-generator": "^2.0"
},
"require-dev": {
"wernerdweight/cs": "^2.0",
"thecodingmachine/phpstan-safe-rule": "^1.0",
"symfony/phpunit-bridge": "^5.0"
"wernerdweight/cs": "^3.0",
"thecodingmachine/phpstan-safe-rule": "^1.2",
"symfony/phpunit-bridge": "^6.0"
},
"suggest": {
"wernerdweight/doctrine-crud-api-bundle": "^1.0"
"wernerdweight/doctrine-crud-api-bundle": "^2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -49,13 +49,12 @@
"phpstan": "phpstan analyse ./src/ ./tests/ --level max",
"phpmd": "phpmd ./src/ text vendor/wernerdweight/cs/phpmd.xml",
"ecs": "ecs check ./src/ ./tests/ --config ecs.php",
"ecs-fix": "ecs check ./src/ ./tests/ --config ecs.php --fix",
"phpunit": "phpunit"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "^4.3|^5.0"
"require": "^6.0"
}
}
}
Loading

0 comments on commit 2b60bd6

Please sign in to comment.