Skip to content

Conversation

@laoneo
Copy link
Member

@laoneo laoneo commented Jun 4, 2017

As a CMSApplicationInterface was introduced in #16499 the rest of the cli scripts do need a brush up.

protected function doExecute()
{
// Load an app which can be used later
JFactory::getApplication('site');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this here?

@laoneo
Copy link
Member Author

laoneo commented Jun 4, 2017

It crashes otherwise. It needs a global application available, another cli script is doing that as well. It's the problem we have to always have a global CMSApplication available trough JFactory. Another approach would be to set the cli app as global app. But then it crashes on functiona like getTemplate. Correctly this function would return the CMS interface.

@wilsonge
Copy link
Contributor

wilsonge commented Jun 4, 2017

I mean part of the idea with the interface is to fix this stuff and have the cms application interface globally. I mean let's get this merged. But this needs fixing somehow...

@wilsonge wilsonge merged commit 601bd0b into joomla:4.0-dev Jun 4, 2017
@wilsonge wilsonge deleted the j4/cli-convert branch June 4, 2017 16:31
@wilsonge wilsonge added this to the Joomla 4.0 milestone Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants