Description

Provides a way to reset an object to its initial state.

When calling the "reset()" method on an object, it should be put back to its initial state. This usually means clearing any internal buffers and forwarding the call to internal dependencies. All properties of the object should be put back to the same state it had when it was first ready to use.

This method could be called, for example, to recycle objects that are used as services, so that they can be used to handle several requests in the same process loop (note that we advise making your services stateless instead of implementing this interface when possible.)

Type hierarchy

Interface usage:

This interface is used in:
Class Package
Swarrot\Processor\ServicesResetter\ServicesResetterProcessor
swarrot/swarrot dev-master
Swarrot\Processor\ServicesResetter\ServicesResetterProcessor
swarrot/swarrot v4.11.0
Swarrot\Processor\ServicesResetter\ServicesResetterProcessor
swarrot/swarrot v3.7.0
Swarrot\SwarrotBundle\Processor\ServicesResetter\ServicesResetterProcessorConfigurator
swarrot/swarrot-bundle dev-master
Swarrot\SwarrotBundle\Tests\Processor\ServicesResetter\ServicesResetterProcessorConfiguratorTest
swarrot/swarrot-bundle dev-master
Swarrot\SwarrotBundle\Processor\ServicesResetter\ServicesResetterProcessorConfigurator
swarrot/swarrot-bundle v2.2.0
Swarrot\SwarrotBundle\Tests\Processor\ServicesResetter\ServicesResetterProcessorConfiguratorTest
swarrot/swarrot-bundle v2.2.0
Symfony\Component\Cache\Traits\ProxyTrait
symfony/cache 6.0.x-dev
Symfony\Component\Cache\Adapter\TraceableAdapter
symfony/cache 6.0.x-dev
Symfony\Component\Cache\Adapter\ChainAdapter
symfony/cache 6.0.x-dev
Symfony\Component\Cache\DoctrineProvider
symfony/cache 6.0.x-dev
Symfony\Component\Cache\Traits\ProxyTrait
symfony/cache 5.4.x-dev
Symfony\Component\Cache\Adapter\TraceableAdapter
symfony/cache 5.4.x-dev
Symfony\Component\Cache\Adapter\ChainAdapter
symfony/cache 5.4.x-dev
Symfony\Component\Cache\DoctrineProvider
symfony/cache 5.4.x-dev
Symfony\Component\Cache\Traits\ProxyTrait
symfony/cache 4.4.x-dev
Symfony\Component\Cache\Adapter\TraceableAdapter
symfony/cache 4.4.x-dev
Symfony\Component\Cache\Adapter\ChainAdapter
symfony/cache 4.4.x-dev
Symfony\Component\Cache\Simple\ChainCache
symfony/cache 4.4.x-dev
Symfony\Component\Cache\Simple\TraceableCache
symfony/cache 4.4.x-dev
Symfony\Component\Cache\DoctrineProvider
symfony/cache 4.4.x-dev
Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension
symfony/framework-bundle 6.0.x-dev
Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension
symfony/framework-bundle 5.4.x-dev
Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension
symfony/framework-bundle 4.4.x-dev
Symfony\Bundle\FrameworkBundle\Test\KernelTestCase
symfony/framework-bundle 4.4.x-dev
Symfony\Component\HttpClient\ScopingHttpClient
symfony/http-client 5.4.x-dev
Symfony\Component\HttpClient\ScopingHttpClient
symfony/http-client 4.4.x-dev
Symfony\Component\HttpClient\TraceableHttpClient
symfony/http-client 4.4.x-dev
Symfony\Component\HttpKernel\DataCollector\EventDataCollector
symfony/http-kernel 4.4.x-dev
Symplify\PackageBuilder\Testing\AbstractKernelTestCase
symplify/package-builder v9.3.24
Symplify\PackageBuilder\Tests\AbstractKernelTestCase
symplify/package-builder v7.3.18
Symplify\PackageBuilder\Tests\AbstractKernelTestCase
symplify/package-builder v6.1.0
Symplify\PackageBuilder\Tests\AbstractKernelTestCase
symplify/package-builder v5.4.16
Webmozarts\Console\Parallelization\Parallelization
webmozarts/console-parallelization dev-master
Webmozarts\Console\Parallelization\Parallelization
webmozarts/console-parallelization 1.x-dev
Swarrot\Processor\ServicesResetter\ServicesResetterProcessor
alveos/swarrot v4.11.0
Symfony\Component\HttpClient\ScopingHttpClient
devster/http-client dev-master
Symfony\Component\HttpClient\ScopingHttpClient
devster/http-client 5.0.x-dev
Symfony\Component\HttpClient\ScopingHttpClient
devster/http-client 4.4.x-dev
ApiTestCase\ApiTestCase
dotdev/api-test-case dev-master
ApiTestCase\ApiTestCase
dotdev/api-test-case 6.0.2
ApiTestCase\ApiTestCase
dotdev/api-test-case v5.0.0
ApiTestCase\Symfony\KernelTestCase
dotdev/api-test-case 4.1.x-dev
Draw\Bundle\TesterBundle\DependencyInjection\ServiceTesterTrait
draw/tester-bundle v0.7.17
Haijin\Bridge\SpecsInSymfony
haijin/specs-bridge dev-master
Haijin\Bridge\SpecsInSymfony
haijin/specs-bridge v0.1.0