for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Controller;
use League\CommonMark\CommonMarkConverter;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class ChangelogController extends Controller
{
/**
* @Route("/changelog")
*/
public function indexAction()
$markConverter = $this->container->get('app.library.common_mark_converter');
$changelog = $markConverter->convertToHtml(file_get_contents(__DIR__ . '/../../../../ChangeLog-3.1.md'));
return $this->render('AppBundle:ChangelogController:index.html.twig', ['changelog' => $changelog]);
}