Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Translation\Extractor; Chris@0: Chris@0: use Symfony\Component\Translation\MessageCatalogue; Chris@0: Chris@0: /** Chris@0: * Extracts translation messages from a directory or files to the catalogue. Chris@0: * New found messages are injected to the catalogue using the prefix. Chris@0: * Chris@0: * @author Michel Salib Chris@0: */ Chris@0: interface ExtractorInterface Chris@0: { Chris@0: /** Chris@0: * Extracts translation messages from files, a file or a directory to the catalogue. Chris@0: * Chris@14: * @param string|array $resource Files, a file or a directory Chris@0: * @param MessageCatalogue $catalogue The catalogue Chris@0: */ Chris@0: public function extract($resource, MessageCatalogue $catalogue); Chris@0: Chris@0: /** Chris@0: * Sets the prefix that should be used for new found messages. Chris@0: * Chris@0: * @param string $prefix The prefix Chris@0: */ Chris@0: public function setPrefix($prefix); Chris@0: }