What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi guys, after last composer update i got last compatible version for my b2b project of symfony/form
Hi guys, after last composer update i got last compatible version for my b2b project of symfony/form and symfony/validator -> both 4.4.7 --> 4.4.8
Now i have some problems when submit a form.. i get this error: Class 'Symfony\Component\Validator\Constraints\RequiredValidator' not found
RequiredValidator class does not exists in symfony validator (never has been created).
The requiredValidator will triggered from ConstraintValidatorFactory
that generate the class name so:
/** * Returns the name of the class that validates this constraint. * * By default, this is the fully qualified name of the constraint class * suffixed with "Validator". You can override this method to change that * behavior. * * @return string */ public function validatedBy() { return static::class.'Validator'; }
It means that every form field/group that have a constraint new Required()
fails because as said there is only a constraint class named Required
but not RequiredValidator
.
Has anyone the same problem?
Thanks a lot!
Comments
-
4.4.8 version of symfony/validator is not compatible with spryker for now. We are working on it right now, but for now I would recomend to lock on 4.4.7 version
0 -
ok, thanks.. !
0 -
@UJY8FHK99 with version 4.4.7 does not work too. Are u sure that with 4.4.7 works?
0 -
Well, I haven’t tried it by myself, but it helped to one developer today
0 -
ok.. i checked it.. on live system i have version 4.4.7 and works.. but every symfony component is still there to version 4.4.7..
when locally i locked only validator to 4.4.7 does not work and i get the same exception.. maybe we need to downgrade everything to 4.4.7 (form too ).
what do u think=?0 -
Sounds right. I’m not aware if smth else from other modules break things, but it looks so.
And thanks for your feedback. We will check what is wrong with other components too.
0 -
i m going to test now.. i will give a feedback asap
0 -
nope... the same problem.. also with form and validator locked to 4.4.7 the same exception.
how can i lock in general to 4.4.7?
0 -
the problem is that a lot of spryker packages just require as dependency "symfony/form": "^3.0.0 || ^4.0.0",
0 -
Has already a fix released or not?
0 -
Update: i confirm that with form and validator locked to 4.4.7 it works. sorry for wrong message yesterday.. smth was wrong and not correctly downgraded..
0 -
please only notify me and others when the fix is releases and spryker again full compatible is with last 4.4.x symfony
0 -
I will.
0 -
https://github.com/spryker/auth/releases/tag/3.7.1
https://github.com/spryker/auth-rest-api/releases/tag/2.9.1
https://github.com/spryker/authentication-merchant-portal-gui/releases/tag/0.1.3
https://github.com/spryker/availability-gui/releases/tag/6.1.1
https://github.com/spryker/cms/releases/tag/7.8.1
https://github.com/spryker/cms-block-gui/releases/tag/2.4.1
https://github.com/spryker/cms-gui/releases/tag/5.6.2
https://github.com/spryker/cms-slot/releases/tag/1.0.1
https://github.com/spryker/company-business-unit-gui/releases/tag/2.5.4
https://github.com/spryker/company-gui/releases/tag/1.3.2
https://github.com/spryker/company-unit-address-gui/releases/tag/1.0.1
https://github.com/spryker/company-user-gui/releases/tag/1.4.3
https://github.com/spryker/content/releases/tag/2.1.1
https://github.com/spryker/content-banner/releases/tag/2.1.1
https://github.com/spryker/content-gui/releases/tag/2.4.4
https://github.com/spryker/customer/releases/tag/7.28.1
https://github.com/spryker/customer-group/releases/tag/2.5.1
https://github.com/spryker/dataset/releases/tag/1.1.1
https://github.com/spryker/glossary/releases/tag/3.9.1
https://github.com/spryker/merchant-gui/releases/tag/3.0.1
https://github.com/spryker/merchant-profile-gui/releases/tag/0.2.1
https://github.com/spryker/merchant-profile-merchant-portal-gui/releases/tag/0.2.2
https://github.com/spryker/price-product-schedule-gui/releases/tag/2.1.4
https://github.com/spryker/price-product-volume-gui/releases/tag/3.0.4
https://github.com/spryker/product-list-gui/releases/tag/2.0.2
https://github.com/spryker/product-relation-gui/releases/tag/1.1.1
https://github.com/spryker/rest-request-validator/releases/tag/1.3.1
https://github.com/spryker/shipment-gui/releases/tag/2.2.6
https://github.com/spryker/shopping-lists-rest-api/releases/tag/1.0.3
https://github.com/spryker/stock-gui/releases/tag/2.0.30
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random