add recurring object

This commit is contained in:
DavidBadura
2015-02-08 13:00:15 +00:00
parent 7199ad4dfa
commit 0d5a2b46e6
6 changed files with 238 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
namespace DavidBadura\Taskwarrior;
use DavidBadura\Taskwarrior\Serializer\Handler\CarbonHandler;
use DavidBadura\Taskwarrior\Serializer\Handler\RecurringHandler;
use JMS\Serializer\Handler\HandlerRegistryInterface;
use JMS\Serializer\Serializer;
use JMS\Serializer\SerializerBuilder;
@@ -277,6 +278,7 @@ class TaskManager
return SerializerBuilder::create()
->configureHandlers(function (HandlerRegistryInterface $registry) {
$registry->registerSubscribingHandler(new CarbonHandler());
$registry->registerSubscribingHandler(new RecurringHandler());
})
->addDefaultHandlers()
->setDebug(true)