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

Sorting issue in class AbstractPluginManagerModel #339

Open
dlevel opened this issue Mar 30, 2016 · 2 comments
Open

Sorting issue in class AbstractPluginManagerModel #339

dlevel opened this issue Mar 30, 2016 · 2 comments

Comments

@dlevel
Copy link

dlevel commented Mar 30, 2016

I have never noticed it before but today a PHP ERROR appears in the log for the class ZF\Apigility\Admin\Model\AbstractPluginManagerModel.

It seems to be due to a the function sort that is called on the property plugins which is not initialized as an array.

I do not exactly know why it occurs now but when the variable plugins is an empty array, the property plugins is set to null and throw this error on line 62.

@IntelliShop-G-Schuster
Copy link

Problem is that, at least, zend-hydrator changed removing the "invokableClasses" property replacing it by "factories" property to declare the hydrators it is able to create.
Apigility relies only on "invokableClasses" which is empty / null, thus the later sort() on $this->plugins in AbstractPluginManagerModel fails.
I fixed that issue by overloading several classes of Apigility just to be able to override the getPlugins() method ^^
Will see if I can submit a patch to the devs.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-admin; a new issue has been opened at laminas-api-tools/api-tools-admin#21.

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

No branches or pull requests

3 participants