Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(config): Prototype of config separation and auto loading #111

Closed

Conversation

Kaspiman
Copy link
Contributor

@Kaspiman Kaspiman commented Jan 4, 2025

Services for different modules and packages are loaded only when needed. You can set tags for services and not remove them later. The container will not contain unnecessary services. You can take this idea further and include files automatically based on installed packages. @gaelreyrol

Signed-off-by: Plakhotnikov Vladimir <v.plahotnikov@yclients.tech>
@Kaspiman Kaspiman requested a review from a team as a code owner January 4, 2025 07:47
@Kaspiman Kaspiman marked this pull request as draft January 4, 2025 07:48
);

if ($instrumentation['tracing']['enabled']) {
$loader->load('instrumentation/'.$name.'.php');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look

@gaelreyrol
Copy link
Contributor

gaelreyrol commented Jan 6, 2025

Hi @Kaspiman, thanks again for working on this.

I know this is one of the last steps before reaching the alpha milestone but I am not sure how I'd like to implement this. It should solve the issues #63 and #64. I think I would like use compiler passes to declare services definitions based on specific conditions/specifications.

I started this work in #107, would you mind to take a look and tell me what you think?

@Kaspiman
Copy link
Contributor Author

@gaelreyrol Your solution looks good to me, let's merge it!

@gaelreyrol
Copy link
Contributor

gaelreyrol commented Jan 13, 2025

Closing in favor of #107.

@gaelreyrol gaelreyrol closed this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants