Move some classes to namespace Core\Http

This commit is contained in:
Frederic Guillot
2015-10-25 18:11:49 -04:00
parent 6756ef2301
commit a2ebc6c3b2
12 changed files with 68 additions and 38 deletions

View File

@@ -11,6 +11,7 @@ use Kanboard\Core\ObjectStorage\FileStorage;
use Kanboard\Core\Paginator;
use Kanboard\Core\OAuth2;
use Kanboard\Core\Tool;
use Kanboard\Core\Http\Client as HttpClient;
use Kanboard\Model\UserNotificationType;
use Kanboard\Model\ProjectNotificationType;
@@ -81,13 +82,14 @@ class ClassProvider implements ServiceProviderInterface
'Core' => array(
'DateParser',
'Helper',
'HttpClient',
'Lexer',
'Session',
'Template',
),
'Core\Http' => array(
'Request',
'Response',
'Router',
'Session',
'Template',
),
'Core\Cache' => array(
'MemoryCache',
@@ -117,6 +119,10 @@ class ClassProvider implements ServiceProviderInterface
return new OAuth2($c);
});
$container['httpClient'] = function ($c) {
return new HttpClient($c);
};
$container['htmlConverter'] = function () {
return new HtmlConverter(array('strip_tags' => true));
};