-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EZP-30973: Made siteaccess aware repository to be used as default #2786
Conversation
d673237
to
89c1ce1
Compare
2c6b88f
to
caffcbb
Compare
@@ -224,7 +224,7 @@ public function updateObjectStateGroup(APIObjectStateGroup $objectStateGroup, Ob | |||
throw $e; | |||
} | |||
|
|||
return $this->buildDomainObjectStateGroupObject($spiObjectStateGroup); | |||
return $this->buildDomainObjectStateGroupObject($spiObjectStateGroup, $objectStateGroup->prioritizedLanguages); |
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.
Please add @property-read string[] $prioritizedLanguages
to \eZ\Publish\Core\Repository\Values\ObjectState\ObjectStateGroup
@@ -380,7 +380,7 @@ public function updateObjectState(APIObjectState $objectState, ObjectStateUpdate | |||
throw $e; | |||
} | |||
|
|||
return $this->buildDomainObjectStateObject($spiObjectState); | |||
return $this->buildDomainObjectStateObject($spiObjectState, null, $objectState->prioritizedLanguages); |
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.
Please add @property-read string[] $prioritizedLanguages
to \eZ\Publish\Core\Repository\Values\ObjectState\ObjectState
@@ -1,19 +1,19 @@ | |||
services: | |||
# API Aliases | |||
ezpublish.api.repository: | |||
alias: eZ\Publish\Core\Event\Repository | |||
alias: ezpublish.siteaccessaware.repository |
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.
using named services instead of FQCN is a step back IMHO
PR updated according to @alongosz code review suggestions. Additionally:
|
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.
Tests with ExampleController for ezpublish.api.service.content service OK.
Regression suite OK.
Sanities OK.
master
TODO:
$ composer fix-cs
).QA:
ezpublish.api.service.content
service is injected