src/Graviton/CoreBundle/Controller/VersionController.php
public function versionsAction()
    {
        $versions = [
            'versions' => $this->versionInformation
        ];

        $response = $this->getResponse()
                         ->setStatusCode(Response::HTTP_OK)
                         ->setContent(json_encode($versions));

        $response->headers->set('Content-Type', 'application/json');

        return $response;
    }
public function versionsAction()
    {
        $versions = [
            'versions' => $this->versionInformation
        ];

        $response = $this->getResponse()
                         ->setStatusCode(Response::HTTP_OK)
                         ->setContent(json_encode($versions));

        $response->headers->set('Content-Type', 'application/json');

        return $response;
    }
public function versionsAction ( ) { $ versions = [ 'versions' => $ this -> versionInformation ] ; $ response = $ this -> getResponse ( ) -> setStatusCode ( Response :: HTTP_OK ) -> setContent ( json_encode ( $ versions ) ) ; $ response -> headers -> set ( 'Content-Type' , 'application/json' ) ; return $ response ; }
Returns all version numbers

@return \Symfony\Component\HttpFoundation\Response $response Response with result or error
Returns all version numbers