Skip to content

Releases: filecage/creator

1.6.1

01 Jun 12:58
Compare
Choose a tag to compare

Changes in 1.6.1

  • Fixed a fatal error when passing a factory class string of a class that does not implement the Factory interface

1.6.0

16 May 14:11
Compare
Choose a tag to compare

Changes in 1.6.0

1.5.1

02 Dec 15:20
Compare
Choose a tag to compare

Changes in 1.5.1

  • Reverts return type hints to avoid backwards incompatible changes

1.5.0 [YANKED]

02 Dec 15:10
Compare
Choose a tag to compare

Changes in 1.5.0

  • Support for PHP 8.1
  • Improved typehints

1.4.0

25 Feb 22:12
114ead4
Compare
Choose a tag to compare

Changes in 1.4.0

  • Refactored some core strategies to speed up Creator in environments that heavily rely on auto-wiring

1.3.1

17 Jul 16:50
be5bf21
Compare
Choose a tag to compare

Changes in 1.3.1

  • Fixed a bug where the creation order is incorrect when a dependency of a class is already registered in the global resource registry (additionally, this could lead to some performance tweaks)

1.3.0

07 Sep 12:43
dd777d0
Compare
Choose a tag to compare

Changes in 1.3.0

  • Self Factories have been added to allow defining auto-wiring plans without loosing flexibility in the constructor signature (see readme and example usage
  • Compatibility with PHP 7.4

1.2.0

02 Jul 12:05
Compare
Choose a tag to compare

Changes in 1.2.0

  • Added internal caching of dependencies to speed up collecting large dependency trees (5eac1af)

1.1.0

01 Jul 11:28
Compare
Choose a tag to compare

Changes in 1.1.0

  • Added resetClassResource() to ResourceRegistry

1.0.0

01 Jul 08:45
Compare
Choose a tag to compare

Changes in 1.0.0

  • Added license (#12)
  • Interfaces have been moved to own tholabs/creator-interfaces package
  • Unresolvable dependencies now throw UnresolvableDependency exceptions. Verbosity of all exception messages has been increased. (#4, #15)
  • ResourceRegistry::getPrimitiveResource() no longer throws Unresolvable exception for unknown values. As replacement, hasPrimitiveResource() has been introduced.
  • \Creator\Container has been added as PSR-11 compliant implementation of Creator (#10, #16)
  • Creator now collects nested dependency trees and checks them when creating injected instances. In previous versions, creations with injected sub-dependencies did not lead to a new instance because Creator only checked the direct dependencies. (#1, #17)
  • Functionality of implicit factory creation has been removed and will be added again in a more configurable and thus more predictable way in a future version (#18)