New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime custom handler not working #631
Comments
make sure the original date time handler is not enabled |
how can I do that, please? |
register your |
Try adding public static function getSubscribingMethods()
{
return [
[
'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
'format' => 'json',
'type' => 'DateTime',
'method' => 'serializeDateTimeToJson',
'priority' => -1,
],
];
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to add a custom handler for DateTime but it's not working. I've tested with other classes and it works.
I'm using the same exact code from the doc.
The text was updated successfully, but these errors were encountered: