From a7e17cb70e9306f8887bd2b5ca1a37edcbe3ea0f Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 11 May 2015 15:02:33 +0200 Subject: Let composer manage its own files --- .../Translation/Extractor/ChainExtractor.php | 60 ---------------------- .../Translation/Extractor/ExtractorInterface.php | 38 -------------- 2 files changed, 98 deletions(-) delete mode 100644 Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ChainExtractor.php delete mode 100644 Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor/ExtractorInterface.php (limited to 'Aufgabe06/vendor/symfony/translation/Symfony/Component/Translation/Extractor') 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 @@ - - * - * 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 - */ -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 @@ - - * - * 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 - */ -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); -} -- cgit v1.2.3-70-g09d2