Posted by donquixote on October 10, 2012 at 10:21pm
2 followers
Jump to:
| Project: | Libraries API |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
for another module I plan to add an additional array key in hook_libraries_info().
#1781794: Registration of additional PSR-0 folders in modules and sites/all/libraries
I would find it very attractive if I could put closures (anonymous functions) in there.
Unfortunately, I found that php cannot serialize closures.
So, the question: Do you ever plan to serialize the result from libraries_get_info(), e.g. to cache it between requests? Because then the closure is out..
Thanks!
Comments
#1
This is a non-issue.
If you ever do serialize this stuff, I will simply implement hook_libraries_info_alter(), and turn the closures into arrays.
The exact format of those arrays can be determined another day.
#2
Sorry, wanted to close as fixed.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.