Class

eZ\Publish\Core\MVC\Symfony\Translation\TranslatableExceptionsFileVisitor

class TranslatableExceptionsFileVisitor implements LoggerAwareInterface, FileVisitorInterface, NodeVisitor

Visits calls to some known translatable exceptions, into the repository_exceptions domain.

Methods

__construct(DocParser $docParser, FileSourceFactory $fileSourceFactory)

DefaultPhpFileExtractor constructor.

setLogger(LoggerInterface $logger)

enterNode(Node $node)

visitPhpFile(SplFileInfo $file, MessageCatalogue $catalogue, array $ast)

beforeTraverse(array $nodes)

leaveNode(Node $node)

afterTraverse(array $nodes)

visitFile(SplFileInfo $file, MessageCatalogue $catalogue)

visitTwigFile(SplFileInfo $file, MessageCatalogue $catalogue, Twig_Node $ast)

Details

at line 85
public __construct(DocParser $docParser, FileSourceFactory $fileSourceFactory)

DefaultPhpFileExtractor constructor.

Parameters

DocParser $docParser
FileSourceFactory $fileSourceFactory

at line 96
public setLogger(LoggerInterface $logger)

Parameters

LoggerInterface $logger

at line 104
public enterNode(Node $node)

Parameters

Node $node

at line 168
public visitPhpFile(SplFileInfo $file, MessageCatalogue $catalogue, array $ast)

Parameters

SplFileInfo $file
MessageCatalogue $catalogue
array $ast

at line 178
public beforeTraverse(array $nodes)

Parameters

array $nodes

at line 185
public leaveNode(Node $node)

Parameters

Node $node

at line 192
public afterTraverse(array $nodes)

Parameters

array $nodes

at line 200
public visitFile(SplFileInfo $file, MessageCatalogue $catalogue)

Parameters

SplFileInfo $file
MessageCatalogue $catalogue

at line 209
public visitTwigFile(SplFileInfo $file, MessageCatalogue $catalogue, Twig_Node $ast)

Parameters

SplFileInfo $file
MessageCatalogue $catalogue
Twig_Node $ast