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

[Core] Remove all *.class parameters #6077

Merged

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Sep 13, 2016

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets partially #5001
License MIT

@pamil pamil force-pushed the core/inline-class-parameters branch from f8b6f5c to b53e3fd Compare September 14, 2016 08:34
@@ -14,7 +14,7 @@
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
use Symfony\Component\Form\FormBuilderInterface;

class ImageType extends AbstractResourceType
abstract class ImageType extends AbstractResourceType
Copy link
Contributor

Choose a reason for hiding this comment

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

Why making this abstract?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've created new class ProductVariantImageType to avoid TaxonImageType extending ImageType (being the product variant one).

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we have 3 types? sylius_image, sylius_product_variant_image and sylius_taxon_image?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed that abstract, registering this one as sylius_product_variant_image. sylius_image has no meaning right now as we don't have a general model for images (just ProductVariantImage, TaxonImage, etc.).

@pamil pamil force-pushed the core/inline-class-parameters branch 3 times, most recently from 025eeaf to 1c49837 Compare September 15, 2016 11:36
@pamil pamil force-pushed the core/inline-class-parameters branch from 1c49837 to 55234be Compare September 16, 2016 09:48
@michalmarcinkowski michalmarcinkowski merged commit 0334ba7 into Sylius:master Sep 16, 2016
@michalmarcinkowski
Copy link
Contributor

👍

@pamil pamil deleted the core/inline-class-parameters branch September 16, 2016 10:53
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.

None yet

2 participants