-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix EZP-26393: Missing options for ezpublish_legacy.kernel_handler.cli #70
Conversation
> https://jira.ez.no/browse/EZP-26393 This patch enforces `use-modules` to `true`, so that operations like `content/publish` can be used from legacy scripts: ```php eZOperationHandler::execute('content', 'publish', ['object_id' => $objectId, 'version' => $version]); ```
+1 Why not include |
Because it's |
Well, damn! :) |
Not knowing this stuff, is this just something that has been forgotten, or are there any downsides/tradeoffs? |
Yes, when implementing the CLIHandler, I actually forgot an important usecase: operations, which are bound on modules. I remember wondering why would we need modules in a script... Stupid me. |
There are no tradeoffs AFAIK |
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.
Thanks, +1
+1 |
If everyone approves, maybe this can be merged? :-) |
Ping ? :) |
This patch enforces
use-modules
totrue
, so that operations likecontent/publish
can be used from legacy scripts: