Skip to content

Translation: PHPParser #857

Description

@Bomere

Hello,

I'm not sure that is an issue or an invalid usage of the extractor...

I'm using "jms/translation-bundle" and when I want to extract labels from bundle, I got an error.

php app/console translation:extract nl --output-format=xliff --bundle=MyBundle

[Symfony\Component\Debug\Exception\ClassNotFoundException]

Attempted to load interface "PHPParser_NodeVisitor" from the global namespace.
Did you forget a "use" statement?

The Php parser is from "nikic/php-parser".
I must modify the extractor (ColumnTitleAnnotationTranslationExtractor) in order to get the translation files.

\PHPParser_NodeVisitor => \PhpParser\NodeVisitor
...

There is bad configuration or other mistakes ?

Thank you !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions