You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 {}
}