for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MaglMarkdown\View\Helper;
use Zend\View\Helper\AbstractHelper;
/**
* This is a ZF2 View Helper to provide Markdown transformation
*
* @author Matthias Glaub <[email protected]>
*/
class Markdown extends AbstractHelper
{
* @var \MaglMarkdown\Service\Markdown
private $markdownService;
public function __construct(\MaglMarkdown\Service\Markdown $markdownService)
$this->markdownService = $markdownService;
}
public function __invoke($text)
return $this->markdownService->render($text);