injecting the __DIR__ in the service