You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now promise adapters comes out of the box:
* `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`
Create a new `DataLoaderPHP` given a batch loading instance and options.
129
129
130
130
-*$batchLoadFn*: A callable / callback which accepts an Array of keys, and returns a Promise which resolves to an Array of values.
131
-
-*$promiseFactory*: Any object that implements `McGWeb\PromiseFactory\PromiseFactoryInterface`. (see [McGWeb/Promise-Factory](https://github.com/mcg-web/promise-factory))
131
+
-*$promiseAdapter*: Any object that implements `Overblog\PromiseAdapter\PromiseAdapterInterface`. (see [Overblog/Promise-Adapter](./lib/promise-adapter/docs/usage.md))
132
132
-*$options*: An optional object of options:
133
133
134
134
-*batch*: Default `true`. Set to `false` to disable batching, instead
"description": "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.",
"description": "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.",
0 commit comments