Releases: bearsunday/BEAR.Resource
1.23.0
1.22.5
1.22.4
What's Changed
- Update dependabot.yml by @koriym in #299
- Update koriym/json-schema-faker requirement from ^0.2 to ^0.3 by @dependabot in #302
- Support justinrainbow/json-schema v5 and v6 by @koriym in #303
- Update rector/rector requirement from ^0.14.8 to ^1.2.4 by @dependabot in #304
- Adjustments for changes to the Unbound exception message in CompileInjector by @jingu in #306
New Contributors
- @dependabot made their first contribution in #302
Full Changelog: 1.22.3...1.22.4
1.22.3
1.22.2
What's Changed
Incorrect phpdoc type specification is corrected; an error with a false positive in phpstan is repaired.
- Restored return type for 'request' method by @KazuyaUchida in #297
New Contributors
- @KazuyaUchida made their first contribution in #297
Full Changelog: 1.22.1...1.22.2
Thanks @KazuyaUchida !
1.22.1
What's Changed
- Enable symfony/http-client v6.0 and v7.0 by @NaokiTsuchiya in #294
- Cleanup deprecated test by @NaokiTsuchiya in #295
Full Changelog: 1.22.0...1.22.1
It was a tedious task that had to be done at some point.
Thnaks @NaokiTsuchiya
1.22.0
Introduced: a Self link feature that enhances the linking capabilities within the application. This allows resources to directly link to themselves using the _self keyword, streamlining the process of assigning a resource's body to another without an intermediary.
#[Embed(rel: "_self", src: "app://self/bar")]
What's Changed
Full Changelog: 1.21.0...1.22.0
1.21.0
public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject;
上記のインターフェイスがResourceObjectに実装され、ResourceObjectはリソースリクエストを自分自身が行うようになりました。
The above interface is implemented in ResourceObject, and ResourceObject now makes resource requests itself.
public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject
{
return $invoker->invoke($request);
}
transfer()と同じように外部からサービスオブジェクトが渡され自身が実行します。ユーザーはこのメソッドをオーバーライドして実行部分を上書きする事ができます。
Like transfer(), a service object is passed from the outside and executed by itself. The user can override this method to override the execution part.
What's Changed
- Remove doctrine/annotation by @koriym in #286
- Update CI v2 by @koriym in #287
- Update license copyright year(s) by @github-actions in #289
- Drop PHP 8.0 support by @koriym in #288
- Invoke request interface by @koriym in #291
- Add php environment on .scrutinizer.yml by @koriym in #292
Full Changelog: 1.20.2...1.21.0