
This problem covers wiring up a service whose starting value is only known once the application is running, by handing the container a piece of code that builds the service instead of a ready-made object.
Read the full problemThis problem covers wiring up several payment providers that share one interface so the checkout picks the right one for the payment method it was handed.
Read the full problemThis problem covers wiring one storage class so that every kind of record in the application can be stored through it, instead of repeating the same wiring line for each new kind.
Read the full problemThis problem covers wiring up a set of report exporters so the right one is picked for the format that was asked for, the whole set can be listed, and the one that needs a value only known at run time is still built correctly.
Read the full problem