Skip to content
docsv0.13.1

MigrationContext

Everything a plugin migration may touch while running. The connection is deliberately typed `object`: the host injects its real database handle (e.g. a Doctrine DBAL Connection) and the migration casts to what it expects — the package itself never depends on any driver.

MigrationContext::__construct()

public function __construct(object $connection, Psr\Log\LoggerInterface $logger):

Parameters

Parameters of __construct()
NameTypeDescription
$connectionobject
$loggerPsr\Log\LoggerInterface