Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\DependencyInjection; Chris@0: Chris@0: /** Chris@0: * ResettableContainerInterface defines additional resetting functionality Chris@0: * for containers, allowing to release shared services when the container is Chris@0: * not needed anymore. Chris@0: * Chris@0: * @author Christophe Coevoet Chris@0: */ Chris@0: interface ResettableContainerInterface extends ContainerInterface Chris@0: { Chris@0: /** Chris@0: * Resets shared services from the container. Chris@0: * Chris@0: * The container is not intended to be used again after being reset in a normal workflow. This method is Chris@0: * meant as a way to release references for ref-counting. Chris@0: * A subsequent call to ContainerInterface::get will recreate a new instance of the shared service. Chris@0: */ Chris@0: public function reset(); Chris@0: }