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

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

Merged
merged 8 commits into from
Aug 22, 2017

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Aug 19, 2017

Pull Request for Issue #16941.

Summary of Changes

Renames the namesapce and the existing MVC factory classe names to upper case MVC. Additionally it fixes an issue where the factory is not passed down the hierarchy from the models and controllers which do extend from the base model/controller.

The important change is that the MVC classes in the component needs to end with the type to be inline with the rest of the namespaced classes. See #17614 for more details. For example the Articles model which has now the name Joomla\Component\Administrator\Model\Articles will become then
Joomla\Component\Administrator\Model\ArticlesModel.

If this one gets merged, then I will adapt the extensions in the 4.0-dev branch accordingly.

Testing Instructions

  • Open the back end
  • Create an article

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 MVC factories, then it needs to be updated.

@mbabker
Copy link
Contributor

mbabker commented Aug 20, 2017

Needs to be synced up since I merged staging up to the 3.9 branch and also moved the MVC factory classes to the right directory.

# Conflicts:
#	libraries/src/MVC/Factory/LegacyFactory.php
#	libraries/src/MVC/Factory/MvcFactory.php
#	libraries/src/MVC/Factory/MvcFactoryInterface.php
@laoneo
Copy link
Member Author

laoneo commented Aug 21, 2017

Merged.

@wilsonge
Copy link
Contributor

You don't actually have the type in this PR. So this is just a renaming of the classes and stuff. But I'm good with that

@wilsonge wilsonge merged commit 4c6ad38 into joomla:3.9-dev Aug 22, 2017
@wilsonge wilsonge deleted the mvc-factory branch August 22, 2017 11:52
@zero-24 zero-24 added this to the Joomla 3.9.0 milestone Aug 22, 2017
laoneo added a commit to Digital-Peak/joomla-cms that referenced this pull request Aug 23, 2017
…#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)
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
@mbabker mbabker modified the milestones: Joomla 3.9.0, Joomla 3.10.0 May 12, 2018
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

5 participants