hookupService method
Hooks a service up to have its events broadcasted.
Implementation
dynamic hookupService(Pattern _path, HookedService service) {
var path = _path.toString();
service.after(
[
HookedServiceEvent.created,
HookedServiceEvent.modified,
HookedServiceEvent.updated,
HookedServiceEvent.removed
],
serviceHook(path),
);
_servicesAlreadyWired.add(path);
}