AbstractFileExtractor.php
1 month ago
ChainExtractor.php
1 month ago
ExtractorInterface.php
1 month ago
PhpExtractor.php
1 month ago
PhpStringTokenParser.php
1 month ago
ExtractorInterface.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWPSCOPED\Symfony\Component\Translation\Extractor; |
| 12 | |
| 13 | use IAWPSCOPED\Symfony\Component\Translation\MessageCatalogue; |
| 14 | /** |
| 15 | * Extracts translation messages from a directory or files to the catalogue. |
| 16 | * New found messages are injected to the catalogue using the prefix. |
| 17 | * |
| 18 | * @author Michel Salib <michelsalib@hotmail.com> |
| 19 | * @internal |
| 20 | */ |
| 21 | interface ExtractorInterface |
| 22 | { |
| 23 | /** |
| 24 | * Extracts translation messages from files, a file or a directory to the catalogue. |
| 25 | * |
| 26 | * @param string|iterable<string> $resource Files, a file or a directory |
| 27 | */ |
| 28 | public function extract(string|iterable $resource, MessageCatalogue $catalogue); |
| 29 | /** |
| 30 | * Sets the prefix that should be used for new found messages. |
| 31 | */ |
| 32 | public function setPrefix(string $prefix); |
| 33 | } |
| 34 |