class Migration

Migration from home-made DI to Symfony DI

Properties

static protected Migration $instance
protected ContainerBuilder $containerBuilder

Methods

static Migration
getInstance(ContainerBuilder|null $containerBuilder = null)

Get instance of this class

__construct(ContainerBuilder $containerBuilder)

Migration constructor.

void
setGlobal(string $key, mixed $value)

Get the instance of the service

Details

at line 34
static Migration getInstance(ContainerBuilder|null $containerBuilder = null)

Get instance of this class

Parameters

ContainerBuilder|null $containerBuilder ContainerBuilder object that should be used to store the data

Return Value

Migration

at line 52
protected __construct(ContainerBuilder $containerBuilder)

Migration constructor.

Parameters

ContainerBuilder $containerBuilder ContainerBuilder object that should be used to store the data

at line 65
void setGlobal(string $key, mixed $value)

Get the instance of the service

Parameters

string $key Key of data to store
mixed $value Data to store

Return Value

void