Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitattributes
100644 → 100755
Empty file.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ on:
jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"

strategy:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.4"
dependencies:
- "highest"
stability:
Expand All @@ -27,11 +26,11 @@ jobs:
# Tests the lowest set of dependencies
- dependencies: "lowest"
stability: "stable"
php-version: "8.1"
php-version: "8.4"
# Tests the highest set of dependencies
- dependencies: "highest"
stability: "dev"
php-version: "8.2"
php-version: "8.4"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -66,7 +65,7 @@ jobs:

upload_coverage:
name: "Upload coverage to Codecov"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs:
- "phpunit"

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
.php-cs-fixer.cache
.phpunit.result.cache
coverage.xml
.result
.result
/flake.lock
30 changes: 30 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

return (new Config())
->setRiskyAllowed(false)
->setRules([
'@auto' => true,
'@PhpCsFixer' => true,
'php_unit_test_class_requires_covers' => false,
])
// 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config
->setFinder(
(new Finder())
// 💡 root folder to check
->in(__DIR__)
// 💡 additional files, eg bin entry file
// ->append([__DIR__.'/bin-entry-file'])
// 💡 folders to exclude, if any
// ->exclude([/* ... */])
// 💡 path patterns to exclude, if any
// ->notPath([/* ... */])
// 💡 extra configs
// ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode
// ->ignoreVCS(true) // true by default
)
;
8 changes: 8 additions & 0 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.0.0
- Support Symfony v8.
- Upgrade PHPunit to v12.
- Fix Symfony and PHPUnit deprecations.
- Remove `form` format deprecations.
- Fix [#22](https://github.com/sfmok/request-input-bundle/issues/22)
- Fix [#21](https://github.com/sfmok/request-input-bundle/issues/21)

## 1.2.6
- Support symfony 7 & fix deprecation.
- Deprecate `form` request input data.
Expand Down
Empty file modified LICENSE.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

**RequestInputBundle** converts request data into DTO inputs objects with validation.

- Request data supported: `json`, `xml` and `form` based on `Content-Type` header.
- Request data supported: `json` and `xml` based on `Content-Type` header.
- Resolve inputs arguments for controllers actions.
- Create DTO inputs outside controllers
- Validate DTO inputs objects.
Expand Down
20 changes: 10 additions & 10 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
],
"license": "MIT",
"require": {
"php": ">=8.1",
"symfony/http-kernel": "^6.2|^7.0",
"symfony/http-foundation": "^6.2|^7.0",
"symfony/serializer": "^6.2|^7.0",
"symfony/validator": "^6.2|^7.0",
"symfony/dependency-injection": "^6.2|^7.0",
"symfony/property-access": "^6.2|^7.0"
"php": ">=8.4",
"symfony/http-kernel": "^8.0",
"symfony/http-foundation": "^8.0",
"symfony/serializer": "^8.0",
"symfony/validator": "^8.0",
"symfony/dependency-injection": "^8.0",
"symfony/property-access": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"symfony/framework-bundle": "^6.2|^7.0",
"phpunit/phpunit": "^12.0",
"symfony/framework-bundle": "^8.0",
"friendsofphp/php-cs-fixer": "^3.5",
"phpstan/phpstan": "^1.9"
"phpstan/phpstan": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading