Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed May 21, 2024
1 parent 7652594 commit 9540a2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ $di->params[VendorClass::class] = [
There might be other objects that you want to compile before serializing the container. A good example might be a
router. All routes might be compiled into a performant route dispatcher, if your routing package supports this.

When creating a compiled instance you can pass config classes that implement the `ContainerCompileInterface`. This
When creating a compiled instance you can pass config classes that implement the `ContainerCompileInterface` to the
`newCompiledInstance` and `configureCompiledInstance` methods of the _ContainerBuilder_. This
interface is an extension of the `ContainerConfigInterface` and has a single method `compile(Container $di): void`.
That method is executed after the `define(Container $di): void` method from the `ContainerConfigInterface` and just
before the container is compiled.
Expand Down

0 comments on commit 9540a2a

Please sign in to comment.