Свойство | Тип | Описание | |
---|---|---|---|
$defaultDomain | string | ||
$exceptionsToExtractFrom | Methods and "domain" parameter offset to extract from PHP code. |
Метод | Описание | |
---|---|---|
__construct ( |
DefaultPhpFileExtractor constructor. | |
afterTraverse ( array $nodes ) | ||
beforeTraverse ( array $nodes ) | ||
enterNode ( PhpParser\Node $node ) | ||
leaveNode ( PhpParser\Node $node ) | ||
setLogger ( Psr\Log\LoggerInterface $logger ) | ||
visitFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue ) | ||
visitPhpFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, array $ast ) | ||
visitTwigFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, Twig_Node $ast ) |
Метод | Описание | |
---|---|---|
getDocCommentForNode ( PhpParser\Node $node ) : null | string |
public __construct ( |
||
$docParser | ||
$fileSourceFactory | JMS\TranslationBundle\Translation\FileSourceFactory |
public setLogger ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface |
public visitFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue ) | ||
$file | SplFileInfo | |
$catalogue | JMS\TranslationBundle\Model\MessageCatalogue |
public visitPhpFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, array $ast ) | ||
$file | SplFileInfo | |
$catalogue | JMS\TranslationBundle\Model\MessageCatalogue | |
$ast | array |
public visitTwigFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, Twig_Node $ast ) | ||
$file | SplFileInfo | |
$catalogue | JMS\TranslationBundle\Model\MessageCatalogue | |
$ast | Twig_Node |