Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stratadox committed Jun 17, 2018
1 parent dab0e7d commit 89c1c10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ The `Instantiator` module provides a most simplistic way of producing empty
instances.

An object that [`ProvidesInstances`](https://github.com/Stratadox/Instantiator/blob/master/contract/ProvidesInstances.php),
generally does so *for a specific class*.

does so *for a specific class*.
In this way it differs from most other instantiator packages, which usually
specify the class to instantiate as method parameter.

Expand All @@ -40,7 +39,7 @@ assert(Foo::class === $provideFoo->class());
The `Instantiator` class basically just extends `ReflectionClass` in order to
alias its [`newInstanceWithoutConstructor`](http://php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php)
method.
In cases where this instantiation method fails, for instance when an final class
In cases where this instantiation method fails, for instance when a final class
inherits from an internal class, deserialization is used instead.

Alternatively, this module provides a container for `PredefinedObjects`. This
Expand Down

0 comments on commit 89c1c10

Please sign in to comment.