Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <[email protected]>
  • Loading branch information
ghostwriter committed Nov 15, 2023
1 parent 63efa24 commit 734509e
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/)
and this project adheres to [Semantic Versioning](https://semver.org/).

## [2.0.1] - 2023-11-15

### Added
- Add `factory` to register a [`service factory`](https://github.com/ghostwriter/container/blob/main/README.md#service-factory)

### 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`)

- 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`)

[2.0.1]: https://github.com/ghostwriter/container/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/ghostwriter/container/releases/tag/v2.0.0

0 comments on commit 734509e

Please sign in to comment.