Skip to content

Improved description of grabService #21

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 2 commits into from
Oct 31, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,9 @@ public function dontSeeEmailIsSent()
}

/**
* Grabs a service from Symfony DIC container.
* Recommended to use for unit testing.
* Grabs a service from the Symfony container.
* In "test" environment, Symfony uses a special `test.service_container`, see https://symfony.com/doc/current/testing.html#accessing-the-container
* Services that aren't injected somewhere into your app, need to be defined as `public` to be accessible by Codeception.
*
* ``` php
* <?php
Expand Down