diff options
Diffstat (limited to 'Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor')
2 files changed, 0 insertions, 98 deletions
diff --git a/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ChainExtractor.php b/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ChainExtractor.php deleted file mode 100644 index 50e3c84..0000000 --- a/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ChainExtractor.php +++ /dev/null @@ -1,60 +0,0 @@ -<?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 = array(); - - /** - * Adds a loader to the translation extractor. - * - * @param string $format The format of the loader - * @param ExtractorInterface $extractor 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); - } - } -} diff --git a/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ExtractorInterface.php b/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ExtractorInterface.php deleted file mode 100644 index 6f877c3..0000000 --- a/Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ExtractorInterface.php +++ /dev/null @@ -1,38 +0,0 @@ -<?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; - -/** - * Extracts translation messages from a template directory to the catalogue. - * New found messages are injected to the catalogue using the prefix. - * - * @author Michel Salib <michelsalib@hotmail.com> - */ -interface ExtractorInterface -{ - /** - * Extracts translation messages from a template directory to the catalogue. - * - * @param string $directory The path to look into - * @param MessageCatalogue $catalogue The catalogue - */ - public function extract($directory, MessageCatalogue $catalogue); - - /** - * Sets the prefix that should be used for new found messages. - * - * @param string $prefix The prefix - */ - public function setPrefix($prefix); -} |
