Skip to content

1.17.0

Latest

Choose a tag to compare

@koriym koriym released this 06 Nov 01:09
· 4 commits to 1.x since this release

A CompiledInjector can now be serialized after resolving a singleton PHP cannot serialize (a PDO connection, a closure), and so can an object holding one of its #[Set] providers.

  • Resolved singletons are left out of the serialized injector, as Ray\Di\Injector does; a restored injector builds each again on first use. State those singletons held is not carried over.
  • After restoring an injector in a coroutine runtime (Swoole, OpenSwoole), call warmup() again.
  • BEAR.Package 1.23 and earlier cached the injector after resolving the application; the application graph is now built again in each process, as BEAR.Package 1.24 and later do.
  • The dist archive no longer ships bin/, demo/, rector.php, CLAUDE.md and .coderabbit.yaml.

PR #147 · CHANGELOG