PHP Class Symfony\Bridge\Twig\Translation\TwigExtractor

Author: Michel Salib ([email protected])
Inheritance: implements Symfony\Component\Translation\Extractor\ExtractorInterface
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Twig_Environment $twig )
extract ( $resource, Symfony\Component\Translation\MessageCatalogue $catalogue )
setPrefix ( $prefix )

Méthodes protégées

Méthode Description
canBeExtracted ( string $file ) : boolean
extractFromDirectory ( string | array $directory ) : array
extractTemplate ( $template, Symfony\Component\Translation\MessageCatalogue $catalogue )

Method Details

__construct() public méthode

public __construct ( Twig_Environment $twig )
$twig Twig_Environment

canBeExtracted() protected méthode

protected canBeExtracted ( string $file ) : boolean
$file string
Résultat boolean

extract() public méthode

public extract ( $resource, Symfony\Component\Translation\MessageCatalogue $catalogue )
$catalogue Symfony\Component\Translation\MessageCatalogue

extractFromDirectory() protected méthode

protected extractFromDirectory ( string | array $directory ) : array
$directory string | array
Résultat array

extractTemplate() protected méthode

protected extractTemplate ( $template, Symfony\Component\Translation\MessageCatalogue $catalogue )
$catalogue Symfony\Component\Translation\MessageCatalogue

setPrefix() public méthode

public setPrefix ( $prefix )