4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection;
15 * ResettableContainerInterface defines additional resetting functionality
16 * for containers, allowing to release shared services when the container is
19 * @author Christophe Coevoet <stof@notk.org>
21 interface ResettableContainerInterface extends ContainerInterface
24 * Resets shared services from the container.
26 * The container is not intended to be used again after being reset in a normal workflow. This method is
27 * meant as a way to release references for ref-counting.
28 * A subsequent call to ContainerInterface::get will recreate a new instance of the shared service.
30 public function reset();