Skip to content

Conversation

@laoneo
Copy link
Member

@laoneo laoneo commented May 18, 2018

Moves com_associations to the service based extension setup.

See #20217 for details.

@infograf768
Copy link
Member

Tested: No noticeable change after this PR (I mean same issues as before).
(To test, one has first to patch with #20448 )

@laoneo
Copy link
Member Author

laoneo commented May 19, 2018

Thanks for the test.

@wilsonge
Copy link
Contributor

wilsonge commented May 19, 2018

Can we/should we have a library class for the component classes that are just MVCFactory aware? Because we're going to have com_cpanel, com_modules, com_plugins, com_associations etc all having exactly the same classname, which seems kinda pointless (to be clear a generic version of https://github.com/Digital-Peak/joomla-cms/blob/9c95d4ece19fe25697fcecce8cb98c25d8b71d8a/administrator/components/com_associations/Extension/AssociationsComponent.php)

@laoneo
Copy link
Member Author

laoneo commented May 20, 2018

@wilsonge good input. Changed and could remove two more classes.

*/
class MVCComponent extends Component implements MVCFactoryServiceInterface
{
use MVCFactoryServiceTrait;
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we still want to keep the trait as it is used only here anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so - people might still choose to build up their own hierarchy of classes for their component implementations

Copy link
Contributor

@wilsonge wilsonge left a comment

Choose a reason for hiding this comment

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

LGTM - need to solve the conflicts here from the requirement of the dispatcher class.

laoneo added 2 commits May 21, 2018 10:50
…ce/associations

# Conflicts:
#	administrator/components/com_modules/services/provider.php
@laoneo
Copy link
Member Author

laoneo commented May 21, 2018

Synced

@wilsonge wilsonge merged commit e74c702 into joomla:4.0-dev May 24, 2018
@wilsonge wilsonge deleted the j4/service/associations branch May 24, 2018 13:53
@zero-24 zero-24 added this to the Joomla 4.0 milestone May 25, 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.

5 participants