Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/config/extractors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:

# Twig Visitors:
php_translation.extractor.twig.visitor.twig:
class: Translation\Extractor\Visitor\Twig\Twig2Visitor
class: Translation\Bundle\Twig\DummyTwigVisitor
factory: [Translation\Extractor\Visitor\Twig\TwigVisitor, create]
tags:
- { name: 'php_translation.visitor', type: 'twig' }
22 changes: 22 additions & 0 deletions Twig/DummyTwigVisitor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <tobias.nyholm@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Translation\Bundle\Twig;

/**
* This dummy extractor is used to be compatible with both Twig1 and Twig2. It is only used in dependency injection
* container.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class DummyTwigVisitor
{
}