User tests: Successful: Unsuccessful:
Pull Request for Issue #40653 .
\Joomla\CMS\Workflow\Workflow
constructor now use CMSApplicationInterface insteadof CMSApplication. This make compatible with CliApplication which implements CMSApplicationInterface but not extends CMSApplication.
Make CLI app which create instance of ArticleModel: $article = \Joomla\CMS\Factory::getApplication()->bootComponent('com_content')->getMVCFactory()->createModel('Article', 'Administrator');
[TypeError] Joomla\CMS\Workflow\Workflow::__construct(): Argument #2 ($app) must be of type ?Joomla\CMS\Application\CMSApplication, Joomla\CMS\Application\ConsoleApplication given, called in ....../libraries/src/MVC/Model/WorkflowBehaviorTrait.php on line 90
I get model object
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Okay, so Joomla can not fix this problem. Understand.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-11-03 09:55:16 |
Closed_By | ⇒ | leeroy1821 | |
Labels |
Added:
PR-5.2-dev
|
i'm sorry that was not my message, just want to put a link to more info
see pr #43155 too