Skip to content

Encapsulate services and collectors #103

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

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Encapsulate services and collectors #103

merged 1 commit into from
Jan 18, 2021

Conversation

TavoNiievez
Copy link
Member

Using strings like 'security.helper' to get services (or collectors) in multiple places was a bad practice.

So in this PR, these identifiers are encapsulated in their own function cohesive to the trait to which they belong.

If one of them changes in the future, only one line of code needs to be changed.

@TavoNiievez TavoNiievez added this to the 2.0.0 milestone Jan 17, 2021
@TavoNiievez TavoNiievez merged commit 3da97ac into Codeception:master Jan 18, 2021
@TavoNiievez TavoNiievez deleted the encapsulate branch January 18, 2021 17:20
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.

1 participant