src/Bridge/Symfony/Container/SimpleResetter.php
<?php
declare(strict_types=1);
namespace K911\Swoole\Bridge\Symfony\Container;
final class SimpleResetter implements Resetter
{
public function __construct(private string $resetFn)
{
}
public function reset(object $service): void
{
$service->{$this->resetFn}();
}
}