- Issue created by @murz
- @murz opened merge request.
- Status changed to Fixed
over 1 year ago 2:20pm 9 March 2023 - 🇦🇲Armenia murz Yerevan, Armenia
I've added new helper functions, that try to autodetect module names and paths:
getModuleName()
- Gets a module name from a namespace of a module class.getModuleRoot()
- Gets a root module folder from a module file full path.
And a new function
initService
that initializes a service only by the class name, or a service name.And I had to make a breaking change in the function
callEventSubscriber()
to accept only the service name as the first parameter, so the list of parameters is changed from this:
function callEventSubscriber(string $servicesYamlFile, string $serviceName, string $eventName, &$event): void;
to this:
function callEventSubscriber($service, string $eventName, object &$event): void;
To have the previous behavior, now you need to pass the service YAML file and the service name in the first parameter as an array.
- Status changed to Fixed
over 1 year ago 2:51pm 9 March 2023 - @murz opened merge request.