Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctrine/Annotations as required dependency #581

Open
parijke opened this issue Nov 2, 2023 · 1 comment
Open

Doctrine/Annotations as required dependency #581

parijke opened this issue Nov 2, 2023 · 1 comment

Comments

@parijke
Copy link

parijke commented Nov 2, 2023

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

@parijke parijke changed the title Doctrine/Annotations as reuired dependency Doctrine/Annotations as required dependency Nov 2, 2023
@mischabraam
Copy link

mischabraam commented Dec 18, 2023

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>]

burki pushed a commit to burki/JMSTranslationBundle that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants