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
Non-shared services are not being reset when they implement ResetInterface. This kind of makes sense, but they are services non-the-less, so they should be referenced in container and should be resettable.
How to reproduce
<?phpuseSymfony\Contracts\Service\ResetInterface;
#[Autoconfigure(
shared: false,
)]
class Test implements ResetInterface
{
publicfunctionreset(): void
{
dd('Hello!');
}
}
class Something
{
publicfunction__construct(privatereadonlyTest$test): void
{
}
}