Skip to content

Enhancement: Use Constructor injection on AppMetrics#121

Merged
denisvmedia merged 1 commit intoartprima:masterfrom
mvhirsch:feature/immutable-app-metrics
Jun 17, 2025
Merged

Enhancement: Use Constructor injection on AppMetrics#121
denisvmedia merged 1 commit intoartprima:masterfrom
mvhirsch:feature/immutable-app-metrics

Conversation

@mvhirsch
Copy link
Contributor

@mvhirsch mvhirsch commented Jun 6, 2025

Introducing ctor injection for immutability in AppMetrics as requested by @denisvmedia in #116 (comment).

@mvhirsch
Copy link
Contributor Author

mvhirsch commented Jun 6, 2025

I'm not able to run PHPCS locally:

php vendor/bin/phpcs
ERROR: Referenced sniff "Symfony" does not exist.
ERROR: Referenced sniff "Symfony.Commenting.ClassComment.Missing" does not exist.
ERROR: No sniffs were registered.

@mvhirsch mvhirsch force-pushed the feature/immutable-app-metrics branch from 7e0b36c to 3f938ac Compare June 6, 2025 10:40
@mvhirsch
Copy link
Contributor Author

mvhirsch commented Jun 6, 2025

Thinking about immutable AppMetrics, we should finalize this class, too. WDYT?

class AppMetrics implements PreRequestMetricsCollectorInterface, RequestMetricsCollectorInterface, TerminateMetricsCollectorInterface

@mvhirsch mvhirsch force-pushed the feature/immutable-app-metrics branch from 3f938ac to 7f6ab17 Compare June 6, 2025 10:48
@mvhirsch mvhirsch force-pushed the feature/immutable-app-metrics branch from 7f6ab17 to 1add5f1 Compare June 6, 2025 10:55
@mvhirsch
Copy link
Contributor Author

Where you able to take a look @denisgcm @denisvmedia?

@denisvmedia denisvmedia merged commit 25179e1 into artprima:master Jun 17, 2025
17 checks passed
@mvhirsch mvhirsch deleted the feature/immutable-app-metrics branch June 17, 2025 12:12
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