Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 9d3bdf4

Browse files
committed
Provides grammatical edits for the new container documentation
1 parent efb04fa commit 9d3bdf4

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

docs/book/features/container/aura-di.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ injection container with the following features:
1414
## Installing and configuring Aura.Di
1515

1616
Aura.Di implements [container-interop](https://github.com/container-interop/container-interop)
17-
as of version 3. To use Aura.Di as dependency injection container we
18-
recommend using [zendframework/zend-auradi-config](https://github.com/zendframework/zend-auradi-config)
19-
which helps you to configure the PSR-11 container. First install the package:
17+
as of version 3. To use Aura.Di as a dependency injection container, we
18+
recommend using [zendframework/zend-auradi-config](https://github.com/zendframework/zend-auradi-config),
19+
which helps you to configure its container. First install the package:
2020

2121
```bash
2222
$ composer require zendframework/zend-auradi-config
2323
```
2424

25-
Then to configure Aura.Di use the following script
26-
(we'll put that in `config/container.php`):
25+
To configure Aura.Di, create the file `config/container.php` with the following
26+
contents:
2727

2828
```php
29+
<?php
2930
use Zend\AuraDi\Config\Config;
3031
use Zend\AuraDi\Config\ContainerFactory;
3132

@@ -35,8 +36,8 @@ $factory = new ContainerFactory();
3536
return $factory(new Config($config));
3637
```
3738

38-
For more information please see
39-
[documentation of zend-auradi-config](https://github.com/zendframework/zend-auradi-config/blob/master/README.md).
39+
For more information, please see the
40+
[zend-auradi-config documentation](https://github.com/zendframework/zend-auradi-config/blob/master/README.md).
4041

4142
Your bootstrap (typically `public/index.php`) will then look like this:
4243

docs/book/features/container/pimple.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Using Pimple
22

3-
[Pimple](http://pimple.sensiolabs.org/) is a widely used code-driven dependency
4-
injection container provided as a standalone component by SensioLabs. It
5-
features:
3+
[Pimple](http://pimple.sensiolabs.org/) is a widely used, code-driven,
4+
dependency injection container provided as a standalone component by SensioLabs.
5+
It features:
66

77
- combined parameter and service storage.
88
- ability to define factories for specific classes.
@@ -13,18 +13,18 @@ Pimple only supports programmatic creation at this time.
1313
## Installing and configuring Pimple
1414

1515
Pimple implements [PSR-11 Container](https://github.com/php-fig/container)
16-
as of version 3.2. To use Pimple as dependency injection container we
17-
recommend using [zendframework/zend-pimple-config](https://github.com/zendframework/zend-pimple-config)
16+
as of version 3.2. To use Pimple as a dependency injection container, we
17+
recommend using [zendframework/zend-pimple-config](https://github.com/zendframework/zend-pimple-config),
1818
which helps you to configure the PSR-11 container. First install the package:
1919

2020
```bash
2121
$ composer require zendframework/zend-pimple-config
2222
```
2323

24-
Then to configure Pimple use the following script
25-
(we'll have that in `config/container.php`):
24+
Now, create the file `config/container.php` with the following contents:
2625

2726
```php
27+
<?php
2828
use Zend\Pimple\Config\Config;
2929
use Zend\Pimple\Config\ContainerFactory;
3030

@@ -34,8 +34,8 @@ $factory = new ContainerFactory();
3434
return $factory(new Config($config));
3535
```
3636

37-
For more information please see
38-
[documentation of zend-pimple-config](https://github.com/zendframework/zend-pimple-config/blob/master/README.md).
37+
For more information, please see the
38+
[zend-pimple-config documentation](https://github.com/zendframework/zend-pimple-config/blob/master/README.md).
3939

4040
Your bootstrap (typically `public/index.php`) will then look like this:
4141

0 commit comments

Comments
 (0)