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

Move mvc classes to MVC namespace and give them better names #17614

Merged
merged 3 commits into from
Aug 20, 2017

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Aug 19, 2017

Pull Request for Issue #16941.

Summary of Changes

This pr moves the Model*, Contoller* and View* classes to the Joomla\CMS\MVC\ namespace. Additionally it appends Model, View Contoller to the classnames for better understanding of the class, like in the rest of the libraries classes.

Joomla 4 impact

If merged, then I will adapt the extensions in the 4.0-dev branch to the new class names. Ping @wilsonge.

Testing Instructions

Open the back end.

Expected result

All is working as expected.

Actual result

All is working as expected.

Documentation Changes Required

If there is already documentation written for the namespaced libraries, then it needs to be updated.

@mbabker
Copy link
Contributor

mbabker commented Aug 19, 2017

CI issues...

@laoneo
Copy link
Member Author

laoneo commented Aug 20, 2017

Tests fixed.

@mbabker mbabker added this to the Joomla 3.8.0 milestone Aug 20, 2017
@mbabker mbabker merged commit f9aa342 into joomla:staging Aug 20, 2017
@mbabker mbabker moved this from Testing/Review to Completed in [4.0] Namespacing Aug 20, 2017
@laoneo laoneo deleted the restructure-mvc branch August 20, 2017 16:43
laoneo added a commit to Digital-Peak/joomla-cms that referenced this pull request Aug 23, 2017
…17614)

* Move mvc classes to MVC namespace and give them better names

* Fixing tests

(cherry picked from commit f9aa342)
wilsonge pushed a commit that referenced this pull request Sep 8, 2017
* Move mvc classes to MVC namespace and give them better names (#17614)

* Move mvc classes to MVC namespace and give them better names

* Fixing tests

(cherry picked from commit f9aa342)

* Rename MVC classes and add type as prefix for the MVC classes (#17615)

* Rename MVC classes and add type as prefix for the MVC classes

* Moved to correct folder

* fgh

* Cleanup

* Cleanup

* CS

(cherry picked from commit 4c6ad38)

* Sync

* Move files to right place

* Rename to uppercase MVC

* Add MVC to namespace in extensions

* Add MVC to namespace in extensions for BaseModel

* Add MVC to namespace in extensions for HtmlView

* Add MVC to namespace in extensions for FormModel

* Add MVC to namespace in extensions for FormController

* Add MVC to namespace in extensions for AdminModel

* Add MVC to namespace in extensions for BaseController

* Add MVC to namespace in extensions for AdminController

* Add MVC to namespace in extensions for ItemModel

* Add MVC to namespace in extensions for CategoryView

* Fix users

* Adapt post save hook function

* CS

* Revert

* Fix tests

* Missed merge

* Move to BaseModel

* Ns it

* Adapt docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants