All notable changes to BrightComponents/Services will be documented in this file
- initial release
- Add autoloading of services
- Add definition and handler suffixes to configuration
- Add 'autoload' option to configuration
- Fix Handler naming issue when using make:service command
- Add self-handling services
- Add ability to cache the autoloaded service/handler mapping.
- Fixed generating and loading of services in nested namespaces.
- Removed helpers that had a dependency on Illuminate\Foundation.
- Rename 'service_suffix' to 'definition_suffix' for clarity.
- Refactored the Service Translator
- Fix config only working in console.
- Replace "autoloading" and cache features with runtime translating.
- Update dependencies and cleanup unused and unnecessary code.
- Add docblocks to translator and interface.
- Fix comments in configuration to clarify parent namespace of self-handling services.
- Replace the Service Definitions/Handler structure with a self-handling implementation.
- Add a payload object for wrapping the result of the domain, to send to the responder.
- Add a trait to Services to allow a service to call itself. ie. MyService::call()
- Fix Payload namespace.
- Second attempt to fix Payload namespace.
- Extract the Payload classes to bright-components/common package.
- Update README to reflect this change.
- With Handler functionality removed, rename package to 'services' from 'servicehandler'.
- Bump version to pull in master, including the new code coverage reporter id.
- Rename make:service command namespace to "bright".
- In Service classes, auto-resolved dependencies have been moved from the "run" method to the constructor. Parameters have been moved from the constructor to the "run" method.
- Using the "CallsServices" trait:
public function __invoke(Request $request)
{
$result = $this->call(StoreCommentService::class, $request->all());
}
- Injecting the ServiceCaller and using the "call" method:
public function __construct(ServiceCaller $caller)
{
$this->caller = $caller;
}
public function __invoke(Request $request)
{
$result = this->caller->call(StoreCommentService::class, $request->all());
}
- Using the "call" method of the Service class itself:
public function __invoke(Request $request)
{
$result = StoreCommentService::call($request->all());
}
- Added initial tests for ServiceMakeCommand.
- Added ability to pass multiple parameters when calling a service.
- Update README.
- With the new bright-components/adr package, we're changing the command namespace from 'bright' to 'adr'.
- Add cached services generator command.
- WIP
- Removed unnecessary creation of CachedServicesServiceProvider.
- Updated how cached services are resolved in the CachedService trait.
- First beta release. Features locked.
- Fix bright-components/common version in composer.json.
- Upgrade laravel framework dependency to 5.7 and change to require the entire framework.
- Update for compatibility with Laravel 5.8
- Update bright-components/common dependency version.
- Initial stable release.
- Update Common dependency. This update could cause bc breaks, so the version has been bumped to 2.0.