Closed
Description
Description
A static method can be used to carry complex configuration payload for DI.
A static method can be used to generate a Closure that can be hooked in the container (a static message handler with no dependency).
Not checking static method disallow using simple attribute autoconfigurator to wire those case easily.
Example
class A {
#[SomeAttribute]
public static function config(): mixed {}
}
536D
code>