mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
27 lines
702 B
PHP
27 lines
702 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the NelmioApiDocBundle.
|
|
*
|
|
* (c) Nelmio <hello@nelm.io>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Nelmio\ApiDocBundle\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
class ApiDocController extends Controller
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$extractedDoc = $this->get('nelmio_api_doc.extractor.api_doc_extractor')->all();
|
|
$htmlContent = $this->get('nelmio_api_doc.formatter.html_formatter')->format($extractedDoc);
|
|
|
|
return new Response($htmlContent);
|
|
}
|
|
}
|