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

Fix deprecated factory definition, bump Symfony to 2.8 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StudioMaX
Copy link

This PR replace factory-service and factory-method attributes by factory section, according to Symfony deprecate rules.

Actually this deprecation appeared in Symfony 2.6. Accidentally noticed this deprecation in the Mautic logs.

@@ -2,3 +2,4 @@
/Propel/om/
/Propel/map/
/vendor/
composer.lock
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason to remove composer.lock from git?

Copy link
Author

Choose a reason for hiding this comment

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

Because it is needed only for this library, and not for projects that depend on this library.
https://getcomposer.org/doc/02-libraries.md#lock-file

For your library you may commit the composer.lock file if you want to. This can help your team to always test against the same dependency versions. However, this lock file will not have any effect on other projects that depend on it. It only has an effect on the main project.

If you do not want to commit the lock file and you are using git, add it to the .gitignore.

But I can revert this if it still needed.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. Thanks for explanation!

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.

2 participants