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

[WIP] refactor pimcore object data-tags to use DI for dependencies #991

Closed

Conversation

dpfaffenbauer
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes

This PR takes use of the Pimcore Implementation Loader to load Custom Object Data Tags. This reduces the usage of Pimcore::getContainer and thus the risk of using private services.

Since Pimcore doesn't really 100% support this, it is a bit tricky. We cannot store properties directly in the Data Class, since Pimcore uses var_export to store definition files, this also exports the dependencies and that will fail with the entity manager. So, we use a private static variable to handle that.

@dpfaffenbauer dpfaffenbauer added this to the 2.1.0 milestone May 16, 2019
@dpfaffenbauer dpfaffenbauer requested a review from a team May 16, 2019 16:38
@dpfaffenbauer dpfaffenbauer self-assigned this May 16, 2019
@dpfaffenbauer dpfaffenbauer changed the title [All] refactor pimcore object data-tags to use DI for dependencies [WIP] refactor pimcore object data-tags to use DI for dependencies May 19, 2019
@dpfaffenbauer
Copy link
Member Author

this will not merged until this is resolved: pimcore/pimcore#4390

currently it is just to hot and could cause potential issues.

@dpfaffenbauer dpfaffenbauer removed this from the 2.1.0 milestone Sep 13, 2019
@dpfaffenbauer
Copy link
Member Author

will not come until pimcore properly supports this

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.

1 participant