Skip to content

Latest commit

 

History

History
86 lines (63 loc) · 3.76 KB

CHANGELOG.md

File metadata and controls

86 lines (63 loc) · 3.76 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[4.0.0] - 2024-06-20

Added

  • Class Ghostwriter\Container\Attribute\Extension added
  • Class Ghostwriter\Container\Attribute\Factory added
  • Class Ghostwriter\Container\Attribute\Inject added
  • Class Ghostwriter\Container\List\Aliases added
  • Class Ghostwriter\Container\List\Bindings added
  • Class Ghostwriter\Container\List\Builders added
  • Class Ghostwriter\Container\List\Dependencies added
  • Class Ghostwriter\Container\List\Extensions added
  • Class Ghostwriter\Container\List\Factories added
  • Class Ghostwriter\Container\List\Instances added
  • Class Ghostwriter\Container\List\Providers added
  • Class Ghostwriter\Container\List\Tags added
  • Method purge() added to Ghostwriter\Container\Interface\ContainerInterface interface

Changed

  • Removed the return type from Ghostwriter\Container\Container#__clone() method
  • Changed the name of parameter 0 of Ghostwriter\Container\Interface\ContainerInterface#alias() from name to service
  • Changed the name of parameter 1 of Ghostwriter\Container\Interface\ContainerInterface#alias() from service to alias
  • Changed the name of parameter 1 of Ghostwriter\Container\Interface\ContainerInterface#bind() from abstract to service
  • Changed the name of parameter 1 of Ghostwriter\Container\Interface\ContainerInterface#factory() from serviceFactory to factory

Removed

  • Class Ghostwriter\Container\Instantiator deleted
  • Class Ghostwriter\Container\ParameterBuilder deleted
  • Class Ghostwriter\Container\Reflector deleted
  • Class Ghostwriter\Container\Exception\ReflectorException deleted
  • Class Ghostwriter\Container\Exception\ServiceExtensionAlreadyRegisteredException deleted

[3.0.0] - 2024-02-06

Added

  • Method invoke() was added to interface Ghostwriter\Container\Interface\ContainerInterface

Changed

  • The number of required arguments for Ghostwriter\Container\Instantiator#__construct() increased from 0 to 2
  • Parameter $reflector of Ghostwriter\Container\Instantiator#construct() was added
  • Parameter $parameterBuilder of Ghostwriter\Container\Instantiator#construct() was added
  • Parameter $container of Ghostwriter\Container\ParameterBuilder#construct() was added

Fixed

  • ParameterBuilder resolves positional arguments

Removed

  • Method Ghostwriter\Container\Instantiator#buildParameters() was removed
  • Parameter $container of Ghostwriter\Container\Instantiator#instantiate() was removed
  • Parameter $container of Ghostwriter\Container\ParameterBuilder#build() was removed

2.0.1 - 2023-11-15

Added

Fixed

  • Build resolves aliases
  • ParameterBuilder resolves default/nullable values from the container
  • Extend supports service name and service type

2.0.0 - 2023-11-12

Changed

  • Rename bind method name to register
  • Rename register method name to provide
  • Rename provide method name to bind
  • Change call method parameter type to callable
  • Change extend method 2nd parameter type to string (MUST be a class-string that implements ExtensionInterface)
  • Change invoke method parameter type to string (MUST be callable-string, class with __invoke method or string function names trim)
  • Change set method 2nd parameter type to callable|object. (The callable MUST return an object)