| 1 | <?php |
||
| 17 | class FineTwigExtension extends Twig_Extension |
||
| 18 | { |
||
| 19 | |||
| 20 | private $translator; |
||
| 21 | |||
| 22 | public function __construct(TranslatorInterface $translator) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * (non-PHPdoc) |
||
| 29 | * @see Twig_ExtensionInterface::getName() |
||
| 30 | */ |
||
| 31 | public function getName() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns a list of filters to add to the existing list. |
||
| 38 | * |
||
| 39 | * @return array An array of filters |
||
| 40 | */ |
||
| 41 | public function getFilters() |
||
| 47 | |||
| 48 | public function translate($message, array $parameters = array(), LanguageDetectionInterface $languageDetection = null) |
||
| 53 | } |
||
| 54 |