4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation\Extractor
;
14 use Symfony\Component\Translation\MessageCatalogue
;
17 * Extracts translation messages from a template directory to the catalogue.
18 * New found messages are injected to the catalogue using the prefix.
20 * @author Michel Salib <michelsalib@hotmail.com>
22 interface ExtractorInterface
25 * Extracts translation messages from a template directory to the catalogue.
27 * @param string $directory The path to look into
28 * @param MessageCatalogue $catalogue The catalogue
30 public function extract($directory, MessageCatalogue
$catalogue);
33 * Sets the prefix that should be used for new found messages.
35 * @param string $prefix The prefix
37 public function setPrefix($prefix);