Remove new instance of each store.
This commit is contained in:
parent
a9545e4104
commit
a0e72b9bc7
|
@ -62,21 +62,21 @@ if (file_exists($configFile)) {
|
||||||
$container['config_file'] = $configFile;
|
$container['config_file'] = $configFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
$container['store.user'] = $container->factory(function () {
|
$container['store.user'] = function () {
|
||||||
return b8\Store\Factory::getStore('User');
|
return b8\Store\Factory::getStore('User');
|
||||||
});
|
};
|
||||||
|
|
||||||
$container['store.project'] = $container->factory(function () {
|
$container['store.project'] = function () {
|
||||||
return b8\Store\Factory::getStore('Project');
|
return b8\Store\Factory::getStore('Project');
|
||||||
});
|
};
|
||||||
|
|
||||||
$container['store.build'] = $container->factory(function () {
|
$container['store.build'] = function () {
|
||||||
return b8\Store\Factory::getStore('Build');
|
return b8\Store\Factory::getStore('Build');
|
||||||
});
|
};
|
||||||
|
|
||||||
$container['store.build_meta'] = $container->factory(function () {
|
$container['store.build_meta'] = function () {
|
||||||
return b8\Store\Factory::getStore('BuildMeta');
|
return b8\Store\Factory::getStore('BuildMeta');
|
||||||
});
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow to modify PHPCI configuration without modify versioned code.
|
* Allow to modify PHPCI configuration without modify versioned code.
|
||||||
|
|
Loading…
Reference in a new issue