Skip to content

Commit

Permalink
Update PSR-XX-provider.md (#72)
Browse files Browse the repository at this point in the history
correction per #70
  • Loading branch information
mindplay-dk authored Jan 14, 2024
1 parent 9c70766 commit 71e3975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSR-XX-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ A factory MAY return `null` for a service - this SHOULD NOT be treated as an err

A factory SHOULD NOT cache anything or store state. Caching and state are the responsibility of the container.

A provider MAY choose to implement the optional `FactoryDefinitionInterface` for type-safety.
A factory MAY implement the optional `FactoryDefinitionInterface` for type-safety.

A container MUST NOT reject a `callable` that does not implement the `FactoryDefinitionInterface` interface.

Expand All @@ -77,7 +77,7 @@ TODO "A extension MAY omit the `$container` and `$service` parameters, if unused

An extension MAY return `null` for a service - this SHOULD NOT be treated as an error, as other services may have nullable dependencies, and (as stated in section 1.3) the existing service could intentionally be `null`.

A provider MAY choose to implement the optional `ExtensionDefinitionInterface` for type-safety.
An extension MAY implement the optional `ExtensionDefinitionInterface` for type-safety.

A container MUST NOT reject a `callable` that does not implement the `ExtensionDefinitionInterface` interface.

Expand Down

0 comments on commit 71e3975

Please sign in to comment.