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

[DEPRECATION] comply with psr-4 autoloading standard #284

Open
florianajir opened this issue Apr 16, 2020 · 1 comment
Open

[DEPRECATION] comply with psr-4 autoloading standard #284

florianajir opened this issue Apr 16, 2020 · 1 comment

Comments

@florianajir
Copy link

Deprecation warning on composer install:

Deprecation Notice: Class Bazinga\Bundle\JsTranslationBundle\Tests\AppKernel located in ./vendor/willdurand/js-translation-bundle/Tests/Fixtures/app/AppKernel.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

@stof
Copy link
Contributor

stof commented Apr 16, 2020

Several solutions here:

  • restructure the bundle to move tests and fixtures outside of the non-dev autoloading root
  • use exclude-from-classmap to exclude the Tests folder from the optimized autoloader
  • use .gitattributes to exclude the Tests folder from the download (this will only remove the warning for dist installs, not source installs).

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