File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/symfony/translation/ExtractorLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: ChainExtractor.php <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Extractor; use Symfony\Component\Translation\MessageCatalogue; /** * ChainExtractor extracts translation messages from template files. * * @author Michel Salib <michelsalib@hotmail.com> */ class ChainExtractor implements ExtractorInterface { /** * The extractors. * * @var ExtractorInterface[] */ private $extractors = []; /** * Adds a loader to the translation extractor. * * @param string $format The format of the loader */ public function addExtractor($format, ExtractorInterface $extractor) { $this->extractors[$format] = $extractor; } /** * {@inheritdoc} */ public function setPrefix($prefix) { foreach ($this->extractors as $extractor) { $extractor->setPrefix($prefix); } } /** * {@inheritdoc} */ public function extract($directory, MessageCatalogue $catalogue) { foreach ($this->extractors as $extractor) { $extractor->extract($directory, $catalogue); } } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAbstractFileExtractor.phpFile1.94 KB Rename | Delete | EditChainExtractor.phpFile1.30 KB Rename | Delete | EditExtractorInterface.phpFile1,013.00 B Rename | Delete | EditPhpExtractor.phpFile8.34 KB Rename | Delete | EditPhpStringTokenParser.phpFile4.29 KB Rename | Delete | Edit