akanehara/ginq

Replace hard coded classes with factories or DI container

hason opened this issue · 1 comments

I want to use own Ginq class that adds a custom method, but it's impossible. It would be useful to have a environment object that can be passed to each iterator:

$ginq = new Environment(['Ging' => 'Vendor\Ginq', 'OrderingGinq' => ...]);
$ginq->from($data)->...;

It can be used pimple DI container - https://github.com/fabpot/Pimple.

👍