Controller/TaskController.php
public function statusAction(Request $request)
    {
        $taskManager = $this->get('phlexible_task.task_manager');

        $states = $taskManager->getStates();

        return new JsonResponse(['states' => $states]);
    }
public function statusAction(Request $request)
    {
        $taskManager = $this->get('phlexible_task.task_manager');

        $states = $taskManager->getStates();

        return new JsonResponse(['states' => $states]);
    }
public function statusAction ( Request $ request ) { $ taskManager = $ this -> get ( 'phlexible_task.task_manager' ) ; $ states = $ taskManager -> getStates ( ) ; return new JsonResponse ( [ 'states' => $ states ] ) ; }
List status.

@param Request $request

@return JsonResponse
@Route("/states", name="tasks_states")
@Method({"GET", "POST"})
@ApiDoc(
description="List task states"
)
List status .