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

Commit fd2c875

Browse files
committed
Merge pull request #23 from Maks3w/typos
Typos
2 parents 20cb47d + d9a4298 commit fd2c875

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doc/book/configuring-the-service-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ var_dump($object1 === $object2); // prints "false"
420420
So far, we have covered examples where services are created through factories
421421
(or abstract factories). The factory is able to create the object itself.
422422

423-
Occasionaly you may need to pass additional options that act as a "context".
423+
Occasionally you may need to pass additional options that act as a "context".
424424
For instance, we could have a `StringLengthValidator` service registered.
425425
However, this validator can have multiple options, such as `min` and `max`.
426426
Because this is dependant on the caller context (or might even be retrieved

doc/book/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ developers will interact. It has the following changes in v3:
278278
- `setAllowOverride()`/`getAllowOverride()`; since instances are now immutable,
279279
these no longer had any meaning.
280280
- `setShareByDefault()`/`shareByDefault()`; this can be passed during
281-
instantation or via `withConfig()`.
281+
instantiation or via `withConfig()`.
282282
- `setThrowExceptionInCreate()`/`getThrowExceptionInCreate()`; exceptions are
283283
*always* thrown when errors are encountered during service instance creation.
284284
- `setRetrieveFromPeeringManagerFirst()`/`retrieveFromPeeringManagerFirst()`;
@@ -382,7 +382,7 @@ Assuming that `AbstractFactoryThatAlwaysResolves` will resolve any service
382382

383383
```php
384384
$has = $container->has('MyClass'); // always true; factory is defined
385-
// forthe service.
385+
// for the service.
386386
$has = $container->has('AnotherClass'); // false; no factory is defined
387387
// for the service, and not
388388
// looking in abstract factories.

src/Factory/AbstractFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* An abstract factory extends the factory interface, but also has an
1818
* additional "canCreateService" method, which is called to check if the
19-
* abstract factory can create an instance for the given serivce. You should
19+
* abstract factory can create an instance for the given service. You should
2020
* limit the number of abstract factories to ensure good performance. Starting
2121
* from ServiceManager v3, remember that you can also attach multiple names to
2222
* the same factory, which reduces the need for abstract factories.

src/Factory/FactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* A factory is an callable object that is able to create an object. It is
1818
* given the instance of the service locator, the requested name of the class
1919
* you want to create, and any additional options that could be used to
20-
* configure the isntance state.
20+
* configure the instance state.
2121
*/
2222
interface FactoryInterface
2323
{

0 commit comments

Comments
 (0)