Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.45 KB

CHANGELOG.md

File metadata and controls

37 lines (29 loc) · 1.45 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Added

  • Added ClassRegistryInterface

Changed

  • Renamed FactoryRegistry to ClassRegistry
  • Updated Factory\create() to use ClassRegistry

Changed

  • Updated Factory\create() to use Strings\random_unique_classname()

Changed

  • Made all methods in AbstractFactory non-static with exception of build(), which has not changed
  • getExpectedClassType() and getTemplateNamespace() are no longer static
  • Added FactoryRegistry class to keep track of runtime factories.
  • Added Factory\create() function which enables the creation of factory classes at runtime.

Changed

  • Added AbstractFactory::build() method which accepts the name of the class to instanciate and arguments (packed using the splat operator) to pass to the constructor (via AbstractFactory::instanciate())
  • Removed hasSimpleFactoryBuildMethodTrait

1.0.0

Added

  • Initial release