Pagination refactoring
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace ServiceProvider;
|
||||
|
||||
use Core\Paginator;
|
||||
use Model\Config;
|
||||
use Model\Project;
|
||||
use Model\Webhook;
|
||||
@@ -28,10 +29,8 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'ProjectActivity',
|
||||
'ProjectAnalytic',
|
||||
'ProjectDailySummary',
|
||||
'ProjectPaginator',
|
||||
'ProjectPermission',
|
||||
'SubTask',
|
||||
'SubtaskPaginator',
|
||||
'SubtaskExport',
|
||||
'Swimlane',
|
||||
'Task',
|
||||
@@ -41,7 +40,6 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'TaskFinder',
|
||||
'TaskFilter',
|
||||
'TaskModification',
|
||||
'TaskPaginator',
|
||||
'TaskPermission',
|
||||
'TaskPosition',
|
||||
'TaskStatus',
|
||||
@@ -57,6 +55,7 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'Session',
|
||||
'MemoryCache',
|
||||
'FileCache',
|
||||
'Request',
|
||||
),
|
||||
'Integration' => array(
|
||||
'GitlabWebhook',
|
||||
@@ -77,5 +76,9 @@ class ClassProvider implements ServiceProviderInterface
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
$container['paginator'] = $container->factory(function ($c) {
|
||||
return new Paginator($c);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user