Add abstract storage layer

This commit is contained in:
Frederic Guillot
2015-09-16 21:32:22 -04:00
parent 8bc141a286
commit 62fd225cfb
9 changed files with 519 additions and 156 deletions

View File

@@ -2,6 +2,7 @@
namespace ServiceProvider;
use Core\ObjectStorage\FileStorage;
use Core\Paginator;
use Core\OAuth2;
use Core\Tool;
@@ -106,5 +107,9 @@ class ClassProvider implements ServiceProviderInterface
$container['htmlConverter'] = function($c) {
return new HtmlConverter(array('strip_tags' => true));
};
$container['objectStorage'] = function($c) {
return new FileStorage(FILES_DIR);
};
}
}