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

Remove unused files in Cron directory #236

Closed
wants to merge 1 commit into from

Conversation

fredden
Copy link

@fredden fredden commented Apr 16, 2020

Fixes: #228

This resolves the following composer warning:

Deprecation Notice: Class Yotpo\Yotpo\Cron\UpdateMetadataJob located in ./vendor/yotpo/magento2-module-yotpo-reviews/Cron/UpdateMetadata.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

While renaming the file was my initial suggestion, I can't see anywhere these files are used, so removing makes sense. In crontab.xml the "Jobs" models are called directly. These files seem to be left over from b3b4d0e and not removed in c49f574 (both of which are part of #176).

This resolves the following composer warning:

Deprecation Notice: Class Yotpo\Yotpo\Cron\UpdateMetadataJob located in ./vendor/yotpo/magento2-module-yotpo-reviews/Cron/UpdateMetadata.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
This was referenced Apr 27, 2020
Copy link
Contributor

@lgreenboim lgreenboim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very match @fredden! Your PR code was inserted to the project.

@lgreenboim lgreenboim closed this Apr 27, 2020
@fredden fredden deleted the psr-4-violation branch October 24, 2020 13:26
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

Successfully merging this pull request may close these issues.

Composer Deprecation notice; file doesn't comply with autoloading standard
2 participants