Empty arrays are serialized to a list instead of a dict (Json API)

This commit is contained in:
Frederic Guillot
2017-01-24 22:09:13 -05:00
parent 81d14efbd1
commit fa5c12a61d
6 changed files with 9 additions and 8 deletions

View File

@@ -15,17 +15,17 @@ class ActionProcedure extends BaseProcedure
{
public function getAvailableActions()
{
return $this->actionManager->getAvailableActions();
return (object) $this->actionManager->getAvailableActions();
}
public function getAvailableActionEvents()
{
return $this->eventManager->getAll();
return (object) $this->eventManager->getAll();
}
public function getCompatibleActionEvents($action_name)
{
return $this->actionManager->getCompatibleEvents($action_name);
return (object) $this->actionManager->getCompatibleEvents($action_name);
}
public function removeAction($action_id)