Join GitHub today
Added way to get active key and active function from Phalcon\Acl\Adapter\Memory #12547
In raising this pull request, I confirm the following (please check boxes):
Small description of change: added methods for getting active key and active function for latest acquired access in acl.
4 times, most recently
Jan 13, 2017
This will work only for Memory Adapter right? So typical user, who does not read CHANGELOG.md, will be very surprised why feature which will use these methods does not work with MyAwesomeAclAdapterFromIncubator. I'm not sure that some custom adapter (impements adapter pattern) should contain methods except those which are declared in the interface.
Yea only for memory. Well then just incubator would need to add this too. This is why i added this to Memory class, not Adapter. I can do the same pr to incubator classes.
So you telling this should aim phalcon 4? Too bad :C
Well i can't change this.
Then i have other proposition: how about passing activeKey and function + number of custom arguments to proper event(adding new event for afterFunctionCheckAccess) ?