akanehara / ginq

`LINQ to Object` inspired DSL for PHP
MIT License
193 stars 18 forks source link

Replace hard coded classes with factories or DI container #53

Open hason opened 10 years ago

hason commented 10 years ago

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.

akanehara commented 10 years ago

:+1: