Remove new instance of each store.

This commit is contained in:
Marco Vito Moscaritolo 2015-05-30 23:24:14 +02:00
parent a9545e4104
commit a0e72b9bc7

View file

@ -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.