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

missing dependency for zendframework/zend-feed stand-alone #6419

Closed
robinvdvleuten opened this issue Jun 27, 2014 · 7 comments
Closed

missing dependency for zendframework/zend-feed stand-alone #6419

robinvdvleuten opened this issue Jun 27, 2014 · 7 comments
Assignees
Milestone

Comments

@robinvdvleuten
Copy link

When I use zendframework/zend-feed standalone;

{
    "zendframework/zend-feed": "~2.3"
}

I get the following error;

PHP Fatal error:  Class 'Zend\ServiceManager\AbstractPluginManager' not found in...

Seems there is missing a dependency for the feed component.

@barryvdh
Copy link

Same her, first got a Class 'Zend\Http\Client' not found error. After requiring the zend-http package, I get Class 'Zend\ServiceManager\AbstractPluginManager' not found

@Ocramius
Copy link
Member

@barryvdh what API is causing this failure?

@Ocramius Ocramius added this to the 2.3.5 milestone Jan 19, 2015
@barryvdh
Copy link

Zend feed reader, importing an xml url

@samsonasik
Copy link
Contributor

I created PR #7179 for it.

@weierophinney weierophinney modified the milestones: 2.3.5, 2.3.6 Feb 18, 2015
@weierophinney
Copy link
Member

I've closed #7179 as it is not a reasonable solution.

As noted in that issue:

The problem people are reporting is a documentation issue: if you use it standalone, you need to create your own implementation of Zend\Feed\Reader\ExtensionPluginInterface that will allow resolving the various feed and entry extensions plugins.

Right now, the default implementation of that is a Zend\ServiceManager\AbstractPluginManager extension, which is why users are reporting that the dependency is missing. Ideally, we should likely provide a default implementation that does not have dependencies, and only have the current ExtensionManager implementation for those who want to leverage the capabilities provided by our ServiceManager component.

I'm adding this to my TODO list for 2.4. In the meantime, take a look at Zend\Feed\Reader\ExtensionPluginManager and how it maps extensions to the classes that provide the functionality; from there, it should be trivial to create a standalone ExtensionManagerInterface implementation for your needs.

@weierophinney
Copy link
Member

Closed with #7254

@harikt
Copy link
Contributor

harikt commented Apr 1, 2015

Same as reported earlier #5414

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants