for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\Extractor\Twig;
final class TranslationExtension extends \Twig_Extension
{
public function getFilters()
return [
new \Twig_SimpleFilter('desc', [$this, 'runDescFilter']),
];
}
public function runDescFilter($v)
return $v;
public function getName()
return 'php-translation';