From a0e72b9bc7c4f74b424f14f8376a4a2edd733241 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sat, 30 May 2015 23:24:14 +0200 Subject: [PATCH] Remove new instance of each store. --- bootstrap.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 50d9bc73..a8820301 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -62,21 +62,21 @@ if (file_exists($configFile)) { $container['config_file'] = $configFile; } -$container['store.user'] = $container->factory(function () { +$container['store.user'] = function () { return b8\Store\Factory::getStore('User'); -}); +}; -$container['store.project'] = $container->factory(function () { +$container['store.project'] = function () { return b8\Store\Factory::getStore('Project'); -}); +}; -$container['store.build'] = $container->factory(function () { +$container['store.build'] = function () { return b8\Store\Factory::getStore('Build'); -}); +}; -$container['store.build_meta'] = $container->factory(function () { +$container['store.build_meta'] = function () { return b8\Store\Factory::getStore('BuildMeta'); -}); +}; /** * Allow to modify PHPCI configuration without modify versioned code.