Skip to content

1.5.0

Choose a tag to compare

@koriym koriym released this 14 Jun 12:01
· 499 commits to 1.x since this release
e8204d1

Features

  • Add InjectorFactory and CachedFactory #73 #74 #75
$cache = new ApcCache; // Doctrine\Common\Cache\Cache
$injector = CachedInjectorFactory::getInstance(
    function () : AbstractModule {
        return new ProdModule;
    },
    'path/to/di',
    $cache, // injector + singleton object cache
   [AbstractRootObject::class, CachedAnnotationReader::class] // 'serizalble singleton object'
);

Documented at #75