[spiral/core] Add force binding singletons
butschster opened this issue · 0 comments
butschster commented
$container->bindSingleton(EnvironmentInterface::class, new Environment(), force: true);
It should remove previous binding under the hood.
butschster opened this issue · 0 comments
$container->bindSingleton(EnvironmentInterface::class, new Environment(), force: true);
It should remove previous binding under the hood.