Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Hotfix/service locator aware interface #344

Merged

Conversation

TomHAnderson
Copy link
Contributor

This removes the ServiceLocatorAwareInterface requirement of this module. It also corrects a unit test where invokable classes are expected to exist on the zend-hydrator HydratorPluginManager but this plugin manager has none.

#341 (comment)
#339
#332

Tom H Anderson added 3 commits June 27, 2016 23:06
@jguittard
Copy link
Contributor

@TomHAnderson Will go through your PR shortly. Meanwhile, you may want to check the couple of CS issues ;)

@TomHAnderson
Copy link
Contributor Author

Thanks @jguittard The CS issues were not from the new code and the standard has been changed then corrected two small CS issues.

@@ -77,10 +47,8 @@ public function fetch($id)
*/
public function fetchAll($params = [])
{
$modules = $this->getServiceLocator()->get('ModuleManager');
$loaded = $modules->getLoadedModules(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would inject the loaded variable through the DoctrineAdapterResource ctor, thus not relying on class_exists methods. @TomHAnderson what do you say?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's fine. I'll make it so.

@TomHAnderson
Copy link
Contributor Author

Should this PR be merged I need a new release so I can develop zf-apigility-doctrine as the AbstractAutodiscoveryModel is extended in that repository.

@jguittard jguittard merged commit d8ecae4 into zfcampus:master Jun 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants