Open
Description
Symfony version(s) affected
7.3
Description
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
<?php
use Symfony\Contracts\Service\ResetInterface;
#[Autoconfigure(
shared: false,
)]
class Test implements ResetInterface
{
public function reset(): void
{
dd('Hello!');
}
}
class Something
{
public function __construct(private readonly Test $test): void
{
}
}
Test->reset()
is never called
Possible Solution
No response
Additional Context
No response