-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Drop helperset usage in favor of the DependencyFactory #898
Conversation
lib/Doctrine/Migrations/Configuration/ConfigurationFormatLoader.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/Connection/ConfiguredConnectionLoader.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Tools/Console/Command/DoctrineCommand.php
Outdated
Show resolved
Hide resolved
f4e8975
to
dd84fbd
Compare
this is ready for review |
f038112
to
ece01e0
Compare
@@ -2,8 +2,9 @@ | |||
|
|||
declare(strict_types=1); | |||
|
|||
namespace Doctrine\Migrations\Configuration\Exception; | |||
namespace Doctrine\Migrations\Configuration\Configuration\Exception; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this on purpose? I find the double Configuration
in the namespace rather strange.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is intentional. I'm also not very happy, but was done to give come structure. Currently there are 3 types of configurations: Migration configs, Connection configs and Entity manager configs. So the idea was to keep all of them in the same folder, but in 3 subfolders.
If you have another idea, will be happy to change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about Doctrine\Migrations\Configuration\(EntityManager|Connection|Migration)
? Configuration\Configuration
seems odd, and doesn't convey why we need the additional subnamespace.
lib/Doctrine/Migrations/Configuration/Configuration/Exception/InvalidConfigurationFormat.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/Configuration/Exception/MissingConfigurationFile.php
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/Connection/ConfigurationFile.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/Connection/ExistingConnection.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/EntityManager/ConfigurationFile.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Configuration/EntityManager/ExistingEntityManager.php
Outdated
Show resolved
Hide resolved
3d4ffea
to
1f96b53
Compare
lib/Doctrine/Migrations/Configuration/Configuration/Exception/InvalidConfigurationFormat.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Migrations/Tests/Tools/Console/Command/LatestCommandTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Migrations/Tests/Tools/Console/Command/MigrationVersionTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Migrations/Tests/Tools/Console/Command/StatusCommandTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Migrations/Tests/Tools/Console/Command/UpToDateCommandTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Migrations/Tests/Tools/Console/ConsoleRunnerTest.php
Outdated
Show resolved
Hide resolved
Co-Authored-By: Grégoire Paris <[email protected]>
Co-Authored-By: Grégoire Paris <[email protected]>
8c05a66
to
442c9a8
Compare
@greg0ire all your comments have been addressed except the one where the conversation is not marked as resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not happy about the Configuration\Configuration
namespace bit, but feel free to create an issue for that and refactor it in a separate PR if you want to work on other things first. Rest LGTM!
Thanks @goetas ! |
Summary
Even if symfony/symfony#27647 did not pass, it is a good idea to not depend on the symfony helperset feature. The doctrine's DependencyFactory is a better way to get command dependencies.