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

Service Manager V2/V3 compatibility #8

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Service Manager V2/V3 compatibility #8

merged 1 commit into from
Jan 19, 2016

Conversation

marc-mabe
Copy link
Member

This component is a require-dev for zend-cache - see zendframework/zend-cache#64

Adapter\PythonPickle::class => InvokableFactory::class,
'zendserializeradapterpythonpickle' => InvokableFactory::class,
Adapter\Wddx::class => InvokableFactory::class,
'zendserializeradapterwddx' => InvokableFactory::class
Copy link
Member Author

Choose a reason for hiding this comment

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

@weierophinney @ezimuel Is that really the way to go ?

Copy link
Member

Choose a reason for hiding this comment

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

No. You should have a combination of aliases and factories. InvokableFactory will not work with the above aliases; it assumes the requested name is the class name. What you should do is:

  • map each FCQN for a plugin to an InvokableFactory
  • map aliases for each plugin to the FQCN. Typically, you'll have multiple variants, but typically all will be in short form. You don't have to do normalized versions of the FQCN as you did above.

Copy link
Member

Choose a reason for hiding this comment

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

I've opened #11 to demonstrate. It looks like @ezimuel added a number of aliases when he merged your changes; I've added a few more. I find that we typically need each of:

  • lowercase
  • camelCase
  • TitleCase

to hit all the various permutations used be folks when fetching from the plugin managers.

ezimuel added a commit that referenced this pull request Jan 19, 2016
Service Manager V2/V3 compatibility
@ezimuel ezimuel merged commit e32454b into zendframework:develop Jan 19, 2016
@ezimuel
Copy link
Contributor

ezimuel commented Jan 19, 2016

@marc-mabe thanks!

@weierophinney weierophinney added this to the 2.6.0 milestone Jan 19, 2016
weierophinney added a commit to weierophinney/zend-i18n that referenced this pull request Jan 20, 2016
Adds the pattern used in zendframework/zend-serializer#8 for determining
which version of each library to use when testing.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants