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

valkyrjaio / valkyrja-php / 30719206477
100%

Build:
DEFAULT BRANCH: 26.x
Ran 01 Aug 2026 09:30PM UTC
Jobs 1
Files 1140
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

01 Aug 2026 09:28PM UTC coverage: 100.0%. Remained the same
30719206477

push

github

web-flow
[Crypt] feat!: Configure the crypt component with a typed config contract (#1003)

# Description

`Valkyrja\Application\Env\Env` is deprecated. It is one non-final class
that holds
about 120 `public const` env variables for every component at once. This
pull
request gives the Crypt component its own typed config contract and its
own config
class. It also converts `CryptServiceProvider` to read that contract.

`CryptServiceProvider` no longer reads `Env`. An application that sets
`Env::CRYPT_DEFAULT` loses that setting, so this change breaks a public
contract.

This pull request does not change `Env.php`. Each component gets its own
pull
request, and all of those pull requests are independent. A pull request
that
deleted its own constants would conflict with every sibling pull request
on that
one file. `Env` therefore stays in place and goes unread. A later pull
request
removes the whole class.

The shape follows `Cli\Interaction`, and it matches the sibling pull
request for
the Cache component:

- `CryptConfigContract` is the container binding key. The application
can
implement the contract on its own `Config` class. `publishConfig` then
binds
  that object.
- `CryptConfig` is the default. `publishConfig` binds a new instance
when the
  application config does not implement the contract.

The Crypt component reads one env constant, so the config class holds
one
property and needs no nested adapter config.

`publishSodiumCrypt` still reads `key` from the application config. That
key is an
application-level value, not an env constant, so this pull request
leaves it where
it is.

Sibling pull requests: #1002 (Cache).

## 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)_
- [x] Breaking change _(fix or feature that would cause existing
fu... (continued)

17 of 17 new or added lines in 2 files covered. (100.0%)

12606 of 12606 relevant lines covered (100.0%)

23.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30719206477.1 01 Aug 2026 09:30PM UTC 1140
100.0
GitHub Action Run
Source Files on build 30719206477
  • Tree
  • List 1140
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30719206477
  • 30e1416f on github
  • Prev Build on 26.x (#30718780846)
  • Next Build on 26.x (#30719226954)
  • 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