DataLoaderPhp is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.
Full Changelog: https://github.com/overblog/dataloader-php/compare/v0.7.0...v1.0.0
Full Changelog: https://github.com/overblog/dataloader-php/compare/v0.6.0...v0.7.0
Fixed ignored instances when added during await() (#14 thank you @OwlyCode)
This reproduces the fix of #8 for the new await() of the 0.5.0 version.
Optimize DataLoader::await
method (#13):
DataLoader::await
first tries to get the fulfilled value or the rejected reason directly from the promise otherwise calls promise adapterawait
to complete promise. NowDataLoader::await
will not throw "no active dataLoader instance" exception when Promise entry is null.
McGWeb\PromiseFactory\PromiseFactoryInterface
is replaced by Overblog\PromiseAdapter\PromiseAdapterInterface
,
where the main difference between both interfaces are methods createResolve
renamed to createFulfilled
and createReject
to createRejected
Abstract Promise (use "mcg-web/promise-factory" to remove dependency to a specific promise lib)