diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-16 22:43:07 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-16 22:43:07 -0400 |
commit | 98b203fe691ec1ea9d6d19e916827185b575b05a (patch) | |
tree | 4010ff020ea9a975d192bbe4d00a3d03beb5b01b | |
parent | 59b614605f15e00aea660c344c04a238e65ba4ab (diff) |
Move DateParser class to Core namespace
-rw-r--r-- | app/Core/DateParser.php (renamed from app/Model/DateParser.php) | 6 | ||||
-rw-r--r-- | app/ServiceProvider/ClassProvider.php | 2 | ||||
-rw-r--r-- | tests/units/Core/DateParserTest.php (renamed from tests/units/Model/DateParserTest.php) | 2 | ||||
-rw-r--r-- | tests/units/Formatter/TaskFilterCalendarFormatterTest.php | 2 | ||||
-rw-r--r-- | tests/units/Formatter/TaskFilterGanttFormatterTest.php | 2 | ||||
-rw-r--r-- | tests/units/Formatter/TaskFilterICalendarFormatterTest.php | 2 | ||||
-rw-r--r-- | tests/units/Model/TaskFilterTest.php | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/app/Model/DateParser.php b/app/Core/DateParser.php index 8159341d..026cf305 100644 --- a/app/Model/DateParser.php +++ b/app/Core/DateParser.php @@ -1,13 +1,13 @@ <?php -namespace Kanboard\Model; +namespace Kanboard\Core; use DateTime; /** - * Date parser model + * Date Parser * - * @package model + * @package core * @author Frederic Guillot */ class DateParser extends Base diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php index 4acebfeb..9df2dede 100644 --- a/app/ServiceProvider/ClassProvider.php +++ b/app/ServiceProvider/ClassProvider.php @@ -29,7 +29,6 @@ class ClassProvider implements ServiceProviderInterface 'Config', 'Currency', 'CustomFilter', - 'DateParser', 'File', 'LastLogin', 'Link', @@ -79,6 +78,7 @@ class ClassProvider implements ServiceProviderInterface 'ProjectGanttFormatter', ), 'Core' => array( + 'DateParser', 'Helper', 'HttpClient', 'Lexer', diff --git a/tests/units/Model/DateParserTest.php b/tests/units/Core/DateParserTest.php index 5d8d6ab1..0d345784 100644 --- a/tests/units/Model/DateParserTest.php +++ b/tests/units/Core/DateParserTest.php @@ -2,7 +2,7 @@ require_once __DIR__.'/../Base.php'; -use Kanboard\Model\DateParser; +use Kanboard\Core\DateParser; class DateParserTest extends Base { diff --git a/tests/units/Formatter/TaskFilterCalendarFormatterTest.php b/tests/units/Formatter/TaskFilterCalendarFormatterTest.php index d5ff532b..a42e865f 100644 --- a/tests/units/Formatter/TaskFilterCalendarFormatterTest.php +++ b/tests/units/Formatter/TaskFilterCalendarFormatterTest.php @@ -6,7 +6,7 @@ use Kanboard\Formatter\TaskFilterCalendarFormatter; use Kanboard\Model\Project; use Kanboard\Model\User; use Kanboard\Model\TaskCreation; -use Kanboard\Model\DateParser; +use Kanboard\Core\DateParser; use Kanboard\Model\Category; use Kanboard\Model\Subtask; use Kanboard\Model\Config; diff --git a/tests/units/Formatter/TaskFilterGanttFormatterTest.php b/tests/units/Formatter/TaskFilterGanttFormatterTest.php index 86815089..14804784 100644 --- a/tests/units/Formatter/TaskFilterGanttFormatterTest.php +++ b/tests/units/Formatter/TaskFilterGanttFormatterTest.php @@ -5,7 +5,7 @@ require_once __DIR__.'/../Base.php'; use Kanboard\Formatter\TaskFilterGanttFormatter; use Kanboard\Model\Project; use Kanboard\Model\TaskCreation; -use Kanboard\Model\DateParser; +use Kanboard\Core\DateParser; class TaskFilterGanttFormatterTest extends Base { diff --git a/tests/units/Formatter/TaskFilterICalendarFormatterTest.php b/tests/units/Formatter/TaskFilterICalendarFormatterTest.php index cd5057d9..915cdda2 100644 --- a/tests/units/Formatter/TaskFilterICalendarFormatterTest.php +++ b/tests/units/Formatter/TaskFilterICalendarFormatterTest.php @@ -7,7 +7,7 @@ use Kanboard\Formatter\TaskFilterICalendarFormatter; use Kanboard\Model\Project; use Kanboard\Model\User; use Kanboard\Model\TaskCreation; -use Kanboard\Model\DateParser; +use Kanboard\Core\DateParser; use Kanboard\Model\Category; use Kanboard\Model\Subtask; use Kanboard\Model\Config; diff --git a/tests/units/Model/TaskFilterTest.php b/tests/units/Model/TaskFilterTest.php index 20e71622..b668b7cc 100644 --- a/tests/units/Model/TaskFilterTest.php +++ b/tests/units/Model/TaskFilterTest.php @@ -6,7 +6,7 @@ use Kanboard\Model\Project; use Kanboard\Model\User; use Kanboard\Model\TaskFilter; use Kanboard\Model\TaskCreation; -use Kanboard\Model\DateParser; +use Kanboard\Core\DateParser; use Kanboard\Model\Category; use Kanboard\Model\Subtask; use Kanboard\Model\Config; |