PHP Event-emitter-callback Resources