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

valkyrjaio / valkyrja-php / 39444785704
100%

Build:
DEFAULT BRANCH: 26.x
Ran 20 Oct 2026 03:05PM UTC
Jobs 1
Files 1444
Run time 1min
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

20 Oct 2026 03:02PM UTC coverage: 100.0%. Remained the same
39444785704

push

github

web-flow
[Grpc] feat: Add the gRPC service map, router, and route collection (#1160)

# Description

Add the gRPC routing implementation: the attributes an application
declares a
service with, the collection the router looks a method up in, the
collector
that reads the attributes, the route, and the router itself.

A route validates its method on construction, so a malformed one fails
where
it is declared rather than on the first call. The pattern accepts the
protocol's own form, an optional dot-joined package followed by a
service and
a method name.

The router re-derives the call after the `RouteMatched` stage and
rebinds it,
because a middleware there may replace the route, and a handler that
resolved
the call earlier would otherwise read the route that lost.

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [x] 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/Grpc/Routing/Attribute/`** — adds the service, method,
method handler and middleware markers
- **`src/Valkyrja/Grpc/Routing/Data/Route.php`** — implements the route,
and validates the method it is given
- **`src/Valkyrja/Grpc/Routing/Collection/RouteCollection.php`** —
implements the lookup
- **`src/Valkyrja/Grpc/Routing/Collector/AttributeRouteCollector.php`**
— builds a route from the attribute pair, and rejects a handler that is
not public and static
- **`src/Valkyrja/Grpc/Routing/Dispatcher/Router.php`** — implements the
router
- **`src/Valkyrja/Grpc/Routing/Provider/`** — publishes the routing
services, and derives the collection in debug mode
- **`src/Valkyrja/Grpc/Routing/Throwable/Exception/`** — adds the
categorical and concrete routing throwables
- **`tests/Tests/Fixture... (continued)

333 of 333 new or added lines in 10 files covered. (100.0%)

16343 of 16343 relevant lines covered (100.0%)

29.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39444785704.1 20 Oct 2026 03:05PM UTC 1444
100.0
GitHub Action Run
Source Files on build 39444785704
  • Tree
  • List 1444
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39444785704
  • dd6c0b36 on github
  • Prev Build on 26.x (#39433772474)
  • Next Build on 26.x (#39455195199)
  • 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