Skip to content

cli-config.php compatibility with DBAL #8327 #1070

@PowerKiKi

Description

@PowerKiKi

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Since DBAL 2.11.0 and doctrine/dbal#3956, it is now deprecated to use HelperSet in cli-config.php. This will become impossible in DBAL 3, following doctrine/dbal#4059.

This means that, in order to keep sharing a single config file for both packages, this package should also accept the new \Doctrine\DBAL\Tools\Console\ConnectionProvider. It could actually be a new interface along the lines of:

namespace \Doctrine\Migrations\Tools\Console\;

interface ConfigurationProvider extends \Doctrine\DBAL\Tools\Console\ConnectionProvider {

    public function getMigrationConfig() : Configuration;

}

I suppose the support of HelperSet could be drop entirely in the next major version too.

See related doctrine/orm#8327

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions