https://github.com/phalcon/cphalcon/blob/master/phalcon/di.zep
line 215 to 230
if typeof eventsManager == "object" {
eventsManager->fire("di:beforeServiceResolve", this, ["name": name, "parameters": parameters]);
}
if fetch service, this->_services[name] {
/**
* The service is registered in the DI
*/
let instance = service->resolve(parameters, this);
} else {
/**
* The DI also acts as builder for any class even if it isn't defined in the DI
*/
if !class_exists(name) {
throw new Exception("Service '" . name . "' wasn't found in the dependency injection container");
}
I want to use "di:beforeServiceResolve" change the parameters .
What should I do?