Jarves\Controller\Admin\ApiDocController::indexAction PHP Method

indexAction() public method

public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response
    public function indexAction()
    {
        $commentExtractor = new \Nelmio\ApiDocBundle\Util\DocCommentExtractor();
        $controllerNameParser = new ControllerNameParser($this->get('kernel'));
        $handlers = [new \Nelmio\ApiDocBundle\Extractor\Handler\FosRestHandler(), new \Nelmio\ApiDocBundle\Extractor\Handler\JmsSecurityExtraHandler(), new \Nelmio\ApiDocBundle\Extractor\Handler\SensioFrameworkExtraHandler(), new \Jarves\Extractor\Handler\ObjectCrudHandler($this->get('jarves'), $this->get('jarves.objects'))];
        $extractor = new \Nelmio\ApiDocBundle\Extractor\ApiDocExtractor($this->container, $this->container->get('router'), $this->container->get('annotation_reader'), $commentExtractor, $controllerNameParser, $handlers, []);
        $extractedDoc = $extractor->all();
        $formatter = new ApiDocFormatter();
        $formatter->setTemplatingEngine($this->get('templating'));
        $htmlContent = $formatter->format($extractedDoc);
        return new Response($htmlContent, 200, array('Content-Type' => 'text/html'));
    }
ApiDocController