Skip to content

Commit 4354797

Browse files
committed
fix typos
1 parent dd2df53 commit 4354797

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Total Downloads](https://poser.pugx.org/container-interop/container-interop/downloads.svg)](https://packagist.org/packages/container-interop/container-interop)
55

66
*container-interop* tries to identify and standardize features in *container* objects (service locators,
7-
dependency injection containers, etc.) to achieve interopererability.
7+
dependency injection containers, etc.) to achieve interoperability.
88

99
Through discussions and trials, we try to create a standard, made of common interfaces but also recommendations.
1010

docs/ContainerInterface.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
1111
interpreted as described in [RFC 2119][].
1212

1313
The word `implementor` in this document is to be interpreted as someone
14-
implementing the `ContainerInterface` in a depency injection-related library or framework.
15-
Users of dependency injections containers (DIC) are refered to as `user`.
14+
implementing the `ContainerInterface` in a dependency injection-related library or framework.
15+
Users of dependency injections containers (DIC) are referred to as `user`.
1616

1717
[RFC 2119]: http://tools.ietf.org/html/rfc2119
1818

@@ -31,50 +31,50 @@ Users of dependency injections containers (DIC) are refered to as `user`.
3131
`user` SHOULD NOT rely on getting the same value on 2 successive calls.
3232
While `ContainerInterface` only defines one mandatory parameter in `get()`, implementations
3333
MAY accept additional optional parameters.
34-
34+
3535
- `has` takes one unique parameter: an entry identifier. It MUST return `true`
3636
if an entry identifier is known to the container and `false` if it is not.
37-
37+
3838
### 1.2 Exceptions
3939

40-
Exceptions directly thrown by the container MUST implement the
40+
Exceptions directly thrown by the container MUST implement the
4141
[`Interop\Container\Exception\ContainerException`](../src/Interop/Container/Exception/ContainerException.php).
4242

4343
A call to the `get` method with a non-existing id SHOULD throw a
4444
[`Interop\Container\Exception\NotFoundException`](../src/Interop/Container/Exception/NotFoundException.php).
4545

4646
### 1.3 Additional features
4747

48-
This section describes additional features that MAY be added to a container. Containers are not
48+
This section describes additional features that MAY be added to a container. Containers are not
4949
required to implement these features to respect the ContainerInterface.
5050

5151
#### 1.3.1 Delegate lookup feature
5252

53-
The goal of the *delegate lookup* feature is to allow several containers to share entries.
53+
The goal of the *delegate lookup* feature is to allow several containers to share entries.
5454
Containers implementing this feature can perform dependency lookups in other containers.
5555

56-
Containers implementing this feature will offer a greater lever of interoperability
56+
Containers implementing this feature will offer a greater lever of interoperability
5757
with other containers. Implementation of this feature is therefore RECOMMENDED.
5858

5959
A container implementing this feature:
6060

6161
- MUST implement the `ContainerInterface`
62-
- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
62+
- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
6363
or any possible way). The delegate container MUST implement the `ContainerInterface`.
6464

6565
When a container is configured to use a delegate container for dependencies:
6666

67-
- Calls to the `get` method should only return an entry if the entry is part of the container.
68-
If the entry is not part of the container, an exception should be thrown
67+
- Calls to the `get` method should only return an entry if the entry is part of the container.
68+
If the entry is not part of the container, an exception should be thrown
6969
(as requested by the `ContainerInterface`).
7070
- Calls to the `has` method should only return `true` if the entry is part of the container.
7171
If the entry is not part of the container, `false` should be returned.
72-
- If the fetched entry has dependencies, **instead** of performing
72+
- If the fetched entry has dependencies, **instead** of performing
7373
the dependency lookup in the container, the lookup is performed on the *delegate container*.
7474

7575
Important! By default, the lookup SHOULD be performed on the delegate container **only**, not on the container itself.
7676

77-
It is however allowed for containers to provide exception cases for special entries, and a way to lookup
77+
It is however allowed for containers to provide exception cases for special entries, and a way to lookup
7878
into the same container (or another container) instead of the delegate container.
7979

8080
2. Package

docs/Delegate-lookup.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Delegate lookup feature
33

44
This document describes a standard for dependency injection containers.
55

6-
The goal set by the *delegate lookup* feature is to allow several containers to share entries.
6+
The goal set by the *delegate lookup* feature is to allow several containers to share entries.
77
Containers implementing this feature can perform dependency lookups in other containers.
88

9-
Containers implementing this feature will offer a greater lever of interoperability
9+
Containers implementing this feature will offer a greater lever of interoperability
1010
with other containers. Implementation of this feature is therefore RECOMMENDED.
1111

1212
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
@@ -15,7 +15,7 @@ interpreted as described in [RFC 2119][].
1515

1616
The word `implementor` in this document is to be interpreted as someone
1717
implementing the delegate lookup feature in a dependency injection-related library or framework.
18-
Users of dependency injections containers (DIC) are refered to as `user`.
18+
Users of dependency injections containers (DIC) are referred to as `user`.
1919

2020
[RFC 2119]: http://tools.ietf.org/html/rfc2119
2121

@@ -36,22 +36,22 @@ fetching the dependencies from.
3636
A container implementing the *delegate lookup* feature:
3737

3838
- MUST implement the [`ContainerInterface`](ContainerInterface.md)
39-
- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
39+
- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
4040
or any possible way). The delegate container MUST implement the [`ContainerInterface`](ContainerInterface.md).
4141

4242
When a container is configured to use a delegate container for dependencies:
4343

4444
- Calls to the `get` method should only return an entry if the entry is part of the container.
45-
If the entry is not part of the container, an exception should be thrown
45+
If the entry is not part of the container, an exception should be thrown
4646
(as requested by the [`ContainerInterface`](ContainerInterface.md)).
4747
- Calls to the `has` method should only return `true` if the entry is part of the container.
4848
If the entry is not part of the container, `false` should be returned.
49-
- If the fetched entry has dependencies, **instead** of performing
49+
- If the fetched entry has dependencies, **instead** of performing
5050
the dependency lookup in the container, the lookup is performed on the *delegate container*.
5151

5252
Important: By default, the dependency lookups SHOULD be performed on the delegate container **only**, not on the container itself.
5353

54-
It is however allowed for containers to provide exception cases for special entries, and a way to lookup
54+
It is however allowed for containers to provide exception cases for special entries, and a way to lookup
5555
into the same container (or another container) instead of the delegate container.
5656

5757
3. Package / Interface

0 commit comments

Comments
 (0)