diff --git a/config/doctrine.php b/config/doctrine.php index 67562f4..e4da51c 100644 --- a/config/doctrine.php +++ b/config/doctrine.php @@ -13,8 +13,8 @@ 'namespace' => null ], - // Available: null, apc, xcache, redis, memcache - 'cache_provider' => null, + // Available: null, array, apc, xcache, redis, memcache + 'cache_provider' => 'array', 'cache' => [ 'redis' => [ diff --git a/src/Cache/ArrayProvider.php b/src/Cache/ArrayProvider.php new file mode 100644 index 0000000..ad0dda5 --- /dev/null +++ b/src/Cache/ArrayProvider.php @@ -0,0 +1,16 @@ +app->bind(CacheManager::class, function ($app) { $manager = new CacheManager($app['config']['doctrine::doctrine.cache']); + $manager->add(new Cache\ArrayProvider); $manager->add(new Cache\ApcProvider); $manager->add(new Cache\MemcacheProvider); $manager->add(new Cache\RedisProvider);