Skip to content

Initial setup of the component#1

Merged
Ocramius merged 14 commits into1.0.xfrom
feature/repository-setup
Mar 22, 2026
Merged

Initial setup of the component#1
Ocramius merged 14 commits into1.0.xfrom
feature/repository-setup

Conversation

@Ocramius
Copy link
Member

@Ocramius Ocramius commented Mar 2, 2026

This patch provides

@Ocramius Ocramius added this to the 1.0.0 milestone Mar 2, 2026
@Ocramius Ocramius self-assigned this Mar 2, 2026
@Ocramius Ocramius added the enhancement New feature or request label Mar 2, 2026
Ocramius added 6 commits March 3, 2026 15:15
This patch provides

* [x] initial documentation
* [x] setup necessary for migration to a `mezzio/*` package
* [x] basic integration testing with a full `mezzio/mezzio` skeleton-alike installation
* [x] parsing of parsed BODY parameters and route parameters
* [x] CI setup
* [ ] parsing of QUERY parameters ( see CuyZ/Valinor#748 )
Should also fix:

```
Invalid workflow file: .github/workflows/continuous-integration.yml#L11
error parsing called workflow
".github/workflows/continuous-integration.yml"
-> "laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.43.0"
: failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit

```

Ref: https://github.com/Roave/mezzio-valinor/actions/runs/22590162608
Most scaffolding of this component was copied
from `laminas/laminas-session`, and here we
are removing all the remaining references.
@Ocramius Ocramius force-pushed the feature/repository-setup branch from 17f53ca to 4763b52 Compare March 3, 2026 14:15
Ocramius added 3 commits March 3, 2026 15:30
…tegrates with `laminas/laminas-servicemanager`
Fixes:

```
Error: docs/book/v1/intro.md:101:3 MD047/single-trailing-newline Files should end with a single newline character
```

Ref: https://github.com/mezzio/mezzio-valinor/actions/runs/22627736362/job/65568913920?pr=1#step:3:508
@Ocramius
Copy link
Member Author

Ocramius commented Mar 3, 2026

Well, I have no idea why the Backward Compatibility Check fails...

Probably because 1.0.x has no "require" section

@Ocramius Ocramius requested a review from gsteel March 3, 2026 15:34
@Ocramius
Copy link
Member Author

Ocramius commented Mar 3, 2026

I'll sign the commits before merge: don't want to rebase before doing that

Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I don't have much to add…

Some kind of automatic mapping would be very attractive to users - ATM, we have that via a merged array, but no control over the merge order - maybe the user wants body to override route attributes for example.

Am I right in understanding that in CuyZ/Valinor#748 usage of Attributes such as #[FromRoute] is mandatory?

Comment on lines +60 to +63
return $next(array_merge(
$body,
$routeParameters,
));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the potential conflicts here will be solved by #2? i.e. users explicitly define where the data comes from by annotating the DTO with #FromRoute etc and using HttpRequest::fromPsr($request, $routeParamsExtractedFromReqAttribute) here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, deferring this to #2 entirely

@Ocramius
Copy link
Member Author

Am I right in understanding that in CuyZ/Valinor#748 usage of Attributes such as #[FromRoute] is mandatory?

That's pretty much what I'm toying around with in #2 :D

@Ocramius Ocramius merged commit 60506da into 1.0.x Mar 22, 2026
24 of 26 checks passed
@Ocramius Ocramius deleted the feature/repository-setup branch March 22, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants