-
Notifications
You must be signed in to change notification settings - Fork 91
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
[framework] deprecated MultidomainMigrationTrait.php #2270
Conversation
d0a4966
to
3c99cc6
Compare
3c99cc6
to
671d050
Compare
eafe5ab
to
db02809
Compare
db02809
to
c84df76
Compare
Kudos, SonarCloud Quality Gate passed!
|
/** | ||
* @return array | ||
*/ | ||
protected function getParsedDomainConfigs(): array |
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.
When you have container loaded here - would not be better to use Domain class instead of parsing yaml files?
/** | ||
* @return array | ||
*/ | ||
protected function getCreatedDomainIds(): array |
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.
I would name it something like getDomainIdsFromSettingValues
to be more describing.
@@ -0,0 +1,72 @@ | |||
<?php |
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.
I would update commit message to something like:
replaced MultidomainMigrationTrait trait by AbstractMigration class
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.
Also those two commits should be probably squashed as now the first commit violates YAGNI and use is added in second one.
/** | ||
* @return array | ||
*/ | ||
protected function getAllDomainIds(): array |
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.
This method violates YAGNI now - it is not used. I thought it will be only method for retrieving domain ids here.
Thanks @TomasLudvik for a review but I am closing this PR after discussion we had. As we aggred this change will not introduce such a good change so we rather describe current behavior better. Created #2276 and closing this one. |
domains.yaml