@serdyuka 

```php
$container->setDefinition($cachedResolverId, $container->getDefinition($resolverId));
```