You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://libraries.io/github/herloct/codeception-slim-module)
@@ -21,26 +21,29 @@ Via `composer.json`:
21
21
```json
22
22
{
23
23
"require-dev": {
24
-
"herloct/codeception-slim-module": "^1.0"
24
+
"herloct/codeception-slim-module": "^1.1"
25
25
}
26
26
}
27
27
```
28
28
29
29
## Config
30
30
31
-
* container: relative path to file which returns Container.
31
+
Put this on your `codeception.yml`'s `modules.config`, or on your `tests/functional.suite.yml`'s
32
+
`modules.enabled`.
32
33
33
34
```yaml
34
35
\Herloct\Codeception\Module\Slim:
35
36
container: path/to/container.php
36
37
```
37
38
39
+
The `container` properties is a relative path to file which returns your App's Container.
40
+
38
41
Minimum `container.php` contents.
39
42
40
43
```php
41
44
require __DIR__.'/vendor/autoload.php';
42
45
43
-
use Interop\Container\ContainerInterface;
46
+
use Psr\Container\ContainerInterface;
44
47
use Slim\App;
45
48
use Slim\Container;
46
49
@@ -61,7 +64,7 @@ You could use this [Sample Project](https://github.com/herloct/codeception-slim-
61
64
62
65
## API
63
66
64
-
* application - instance of `\Slim\App`
67
+
* app - instance of `\Slim\App`
65
68
* container - instance of `\Interop\Container\ContainerInterface`
0 commit comments