Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema provider setting #265

Closed

Conversation

thewilkybarkid
Copy link

As mentioned in #190 there's no setting for the diff command's schema provider. This adds a schema_provider setting.

Refs libero/content-store#8 (comment).

@alcaeus alcaeus self-requested a review April 30, 2019 18:48
@alcaeus alcaeus self-assigned this Apr 30, 2019
}

$diffCommand = $container->findDefinition('doctrine_migrations.diff_command');
$diffCommand->setArgument(0, new Reference($config['schema_provider']));
Copy link
Member

@SenseException SenseException May 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A check if a valid $config['schema_provider'] value exists should happen.
Probably with a compiler pass?

@jwage jwage added this to the 2.1.0 milestone May 22, 2019
@alcaeus alcaeus removed this from the 2.1.0 milestone Nov 13, 2019
@goetas goetas added this to the 3.0.0 milestone Mar 23, 2020
@goetas
Copy link
Member

goetas commented Mar 23, 2020

This is possible in 3.x by using the services section in the new configuration format.
See https://github.com/doctrine/DoctrineMigrationsBundle/blob/master/Resources/doc/index.rst#configuration

@goetas goetas closed this Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants