class EnvironmentCleanerFactory (View source)

Test environment cleaner factory.

We use a factory pattern here so that we can inject the test results database which is not a service (and should not be).

Properties

protected Container $container

The container.

Methods

__construct(Container $container)

Construct an environment cleaner factory.

createCleaner()

Factory method to create the environment cleaner service.

Details

__construct(Container $container)

Construct an environment cleaner factory.

Parameters

Container $container

The container.

EnvironmentCleanerService createCleaner()

Factory method to create the environment cleaner service.

Return Value

EnvironmentCleanerService

The environment cleaner service.