• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / valkyrja-php / 30234094550
100%

Build:
DEFAULT BRANCH: 26.x
Ran 27 Jul 2026 03:15AM UTC
Jobs 1
Files 1138
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2026 03:13AM UTC coverage: 100.0%. Remained the same
30234094550

push

github

web-flow
[Http] Move misfiled RouteFactory from Cli to Http namespace (#927)

# Description

`RouteFactory` lived under the `Cli\Routing\Factory` namespace but
builds **HTTP** routes — it imports `Valkyrja\Http\Routing\Data\{Route,
DynamicRoute, …}` and `Valkyrja\Http\Struct\…`, and is imported/used
only by the HTTP `AttributeRouteCollector`. It was simply misfiled. This
moves it to `Http\Routing\Factory\RouteFactory` where it belongs.
Behavior is identical — only the namespace/location changed.

The CLI `AttributeRouteCollector` converts route attributes to data
inline (`convertAttributeToData()`) and needs no CLI route factory, so
none was introduced.

_Note (no change here): Java's
`io.valkyrja.cli.routing.factory.RouteFactory` correctly builds CLI
routes (not this bug) and appears unused; TypeScript has no such
factory._

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [x] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

## Changes

- **`src/Valkyrja/Http/Routing/Factory/RouteFactory.php`** — moved from
`src/Valkyrja/Cli/Routing/Factory/RouteFactory.php`; namespace changed
`Cli\Routing\Factory` → `Http\Routing\Factory` (imports unchanged —
already all `Http\…`).
- **`src/Valkyrja/Http/Routing/Collector/AttributeRouteCollector.php`**
— updated the `use` import to the new
`Http\Routing\Factory\RouteFactory` FQCN.
- **`tests/Tests/Unit/Http/Routing/Factory/RouteFactoryTest.php`** —
moved from `tests/Tests/Unit/Cli/Routing/Factory/RouteFactoryTest.php`;
namespace and `RouteFactory` import updated.

12591 of 12591 relevant lines covered (100.0%)

17.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30234094550.1 27 Jul 2026 03:15AM UTC 1138
100.0
GitHub Action Run
Source Files on build 30234094550
  • Tree
  • List 1138
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30234094550
  • c64ea38c on github
  • Prev Build on 26.x (#30233347644)
  • Next Build on 26.x (#30236752593)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc