Skip to content
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

[4.0] Namespace content site route helper #19870

Merged
merged 25 commits into from
Jun 14, 2019

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Mar 8, 2018

Summary of Changes

Namespace content site route helper.

Testing Instructions

Open an article on the front.

Expected result

Article is displayed.

Actual result

Article is displayed.

@wilsonge
Copy link
Contributor

Conflicts. But I want to sit on this one for a bit. I really really don't like mapping this class globally. But I need to have a think about what a better solution actually looks like - presumably something in the extensions container? :/

@laoneo
Copy link
Member Author

laoneo commented May 30, 2018

I was also thinking about the container. Problem is that mostly legacy code is using it where boot is not called before.

laoneo added 10 commits July 17, 2018 10:03
…ntent/route

# Conflicts:
#	administrator/components/com_content/tmpl/articles/modal.php
#	components/com_contact/tmpl/contact/default_articles.php
#	components/com_content/Dispatcher/Dispatcher.php
#	components/com_content/Helper/AssociationHelper.php
#	components/com_content/View/Article/HtmlView.php
#	components/com_content/tmpl/article/default.php
@laoneo
Copy link
Member Author

laoneo commented Oct 3, 2018

Conflicts fixed

@ghost ghost added the J4 Issue label Apr 5, 2019
@ghost ghost removed the J4 Issue label Apr 13, 2019
@laoneo
Copy link
Member Author

laoneo commented May 16, 2019

@wilsonge can you have a second look on this one. People are asking why we still have lowercase folders in core with classes. And on this one there is no reason to not namespace it.

@wilsonge wilsonge merged commit 054803b into joomla:4.0-dev Jun 14, 2019
@wilsonge
Copy link
Contributor

Thanks!

@wilsonge wilsonge deleted the j4/ns/content/route branch June 14, 2019 19:35
@wilsonge wilsonge added this to the Joomla 4.0 milestone Jun 14, 2019
@wilsonge
Copy link
Contributor

I still feel that this is wrong because 3PD extensions have no way of adding entries into the extensions mapper file. This file should be something that we use to allow other extensions to function who extended non-namespaced classes. But as you say it gets the namespacing done for now and can be improved in the future.

@brianteeman
Copy link
Contributor

Can you create an issue with your comments so it doesn't get forgotten

@wilsonge
Copy link
Contributor

Done

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.

None yet

4 participants