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

Broken alias #15

Closed
apzuk3 opened this issue Feb 16, 2016 · 3 comments
Closed

Broken alias #15

apzuk3 opened this issue Feb 16, 2016 · 3 comments
Assignees

Comments

@apzuk3
Copy link

apzuk3 commented Feb 16, 2016

FilterPluginManager extends from zend-filter/FilterPluginManager and overrides $aliases which causes broken alias rename -> filterename which doesn't exist

@apzuk3 apzuk3 changed the title Broken alians Broken alias Feb 16, 2016
@weierophinney weierophinney self-assigned this Feb 16, 2016
@weierophinney
Copy link
Member

This is due to zend-filter 2.6 updating to be forwards-compatible with zend-servicemanager v3. Prior to 2.6, it didn't define aliases, only invokables; to make it forwards-compatible, we split invokables into aliases + factories. Unfortunately, zend-file also defines aliases, which is where the problems occur.

The short term solution is to add the following to the require section of your composer.json:

"zendframework/zend-filter": "^2.5.0"

That will force usage of a zend-filter version from before the forwards-compatibility changes.

I plan to get zend-file updated in the next day or two, however, and, once updated, this will no longer be an issue.

@apzuk3
Copy link
Author

apzuk3 commented Feb 16, 2016

I used Zend\Filter\File\Rename instead of alias rename

@weierophinney
Copy link
Member

@aram118 That will also work. :) BTW, marking as a duplicate, as a fix was already submitted with #14, which I'll be merging shortly.

weierophinney added a commit that referenced this issue Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants