schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
427 stars 291 forks source link

Doctrine/Annotations as required dependency #581

Open parijke opened 10 months ago

parijke commented 10 months ago
Q A
Bundle version 2.0.0
Symfony version 6.3
PHP version 8.2

When this bundle is installed, but not explicitely requires Doctrine/Annotations in the base composer.json, I get errors that the DocParser cannot be found

It seems required by https://github.com/schmittjoh/JMSTranslationBundle/blob/master/Translation/Extractor/File/DefaultPhpFileExtractor.php

mischabraam commented 8 months ago

doctrine/annotations currently is a dev requirement. Maybe this should be a non-dev requirement?

> bin/console
Symfony 6.4.1 (env: dev, debug: true) #StandWithUkraine https://sf.to/ukraine

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "dev"]
      --no-debug        Switch off debug mode.
      --profile         Enables profiling (requires debug).
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

In getJmsTranslation_UpdaterService.php line 57:

  Attempted to load class "DocParser" from namespace "Doctrine\Common\Annotations".
  Did you forget a "use" statement for another namespace?

list [--raw] [--format FORMAT] [--short] [--] [<namespace>]