Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 2.23 KB

CHANGELOG.md

File metadata and controls

89 lines (56 loc) · 2.23 KB

Parable PHP DI

1.0.0

It's time! Finally a 1.0.0 release, locking the interface in place for at least a while.

Changes

  • Completed the README.
  • clear() no longer throws on a non-stored instance, since the expected result (that instance no longer being stored) is met.
  • NotFoundException renamed to InstanceNotFoundException for clarity.
  • Added unmap(string $requested): void to unmap and clear any mapped instance.
  • Improved clearExcept() to use clear() so it also unsets any existing relationships.

0.3.2

Changes

  • Add static analysis using psalm.

0.3.1

Fixes

  • Small fix for the new php8 reflection types.

0.3.0

Changes

  • Dropped support for php7, php8 only from now on.

0.2.6

Changes

  • ReflectionParameter::getClass() is deprecated in php 8+, so reworked to use ReflectionParameter::getType() instead.

0.2.5

Changes

  • normalize() now also trims the provided string of whitespace first.

0.2.4

Changes

  • Remove object return type hinting, since it didn't actually help.
  • Thanks to @dmvdbrugge, dynamicReturnTypeMeta.json has been replaced by the PhpStorm-native .phpstorm.meta.php. See PR #1.

0.2.3

Changes

  • Scalar parameters can now also be handled, but only if they are considered optional. This means after any required parameters, and with a default value.

0.2.2

Changes

  • Define strict types.

0.2.1

Bugfixes

  • Fixed bug where in some cases, an un-injectable parameter's type could not be established.

0.2.0

Changes

  • STORED_DEPENDENCIES and NEW_DEPENDENCIES are now USE_STORED_DEPENDENCIES and USE_NEW_DEPENDENCIES, for clarity.

Bugfixes

  • clearRelationship() had a bug where right-hand relationships weren't being cleared, leading to more class names being stored than necessary.

0.1.3

Bugfixes

  • Calling map() will now also normalize the names provided.
  • Fixed type hint for $maps.

0.1.2

Changes

  • Removed obsolete doc block annotations for params.
  • Added dynamic return type config.

0.1.1

Changes

  • Added map(string $requested, string $replacement). This way, you can set replacement instantiating names beforehand, which only get resolved once the original name is retrieved.

0.1.0

Changes

  • First release.