? Success

User tests: Successful: Unsuccessful:

avatar fastslack
fastslack
30 May 2017

Namespace for document classes

Summary of Changes

Move /libraries/joomla/document to /libraries/src/Joomla/CMS/Document

Testing Instructions

Apply patch and try to create one article

Expected result

No errors

avatar fastslack fastslack - open - 30 May 2017
avatar fastslack fastslack - change - 30 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2017
Category Libraries
avatar fastslack fastslack - change - 30 May 2017
Title
Namespace document
[3.8] Namespace document
avatar fastslack fastslack - change - 30 May 2017
Title
Namespace document
[3.8] Namespace document
avatar fastslack fastslack - edited - 30 May 2017
avatar mbabker
mbabker - comment - 30 May 2017

This has test issues.

Error displaying the error page: Application Instantiation Error: include_once(/home/travis/build/joomla/joomla-cms/libraries/joomla/document/html/renderer/component.php): failed to open stream: No such file or directory
avatar fastslack
fastslack - comment - 30 May 2017

@mbabker I removed that files because are duplicated and are not needed any more. Look at the files, there is only mapping to deprecated files.

https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/document/html/renderer/component.php

We can solve compatibilities issues in classmap.php file.

https://github.com/fastslack/joomla-cms/blob/namespace-document/libraries/classmap.php#L191

Maybe we should remove that tests

avatar wilsonge wilsonge - change - 31 May 2017
Labels Added: ?
avatar mbabker
mbabker - comment - 31 May 2017

We don't need the format in the short class section for the renderers. So for example instead of Joomla\CMS\Document\Renderer\Html\RendererHtmlComponent we can do something like Joomla\CMS\Document\Renderer\Html\ComponentRenderer.

avatar mbabker
mbabker - comment - 31 May 2017

OK, one more pedantic change, then there's one concern we need to quickly look over. For the document classes, can you change it to <format>Document instead of Document<format>?

The concern - we have some files here that have multiple classes in them. I think this would be a good time to move them out to separate files.

avatar laoneo
laoneo - comment - 17 Jul 2017

Thanks!

avatar mbabker
mbabker - comment - 28 Jul 2017

Fixed the items I pointed out and merged to staging.

avatar mbabker mbabker - change - 28 Jul 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-07-28 12:33:58
Closed_By mbabker
avatar mbabker mbabker - close - 28 Jul 2017

Add a Comment

Login with GitHub to post a comment