Allow passing explicit services.yml path to a service init function

Created on 6 October 2023, about 1 year ago
Updated 15 January 2024, 10 months ago

Problem/Motivation

Now the function initService() works well when the initializing service has a custom name or a class, related to the module.
But when we got a service with a class from the namespace of another module, it failed to auto-detect the services' location.yaml file.

Steps to reproduce

1. Add a service with the name 'OpenTelemetry\Contrib\Otlp\SpanExporterFactory'.
2. Try to init it via:
TestHelpers::initService('OpenTelemetry\Contrib\Otlp\SpanExporterFactory');

Proposed resolution

Add a new argument $servicesYamlFile to the function service() to allow explicitly pass the file with services information.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.3

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024