Joined November 2012
·

Joeri Timmermans

Pix-art
·
Belgium
·
·
·

You're absolutely right. As always there are many ways to tackle many problems. The reason I'm using it like this is because I based myself on a manual install tutorial and just created the ansible line per install command. You can of course optimize by combining those 2 apt-get's into one. But this was all for the sake of tutoring. I wouldn't recommend using this as an end product, you would be better of using one of the prepared roles on https://galaxy.ansible.com/

Added that the install commands in the list if people prefer homebrew

Posted to Silex Custom Constraint with DI over 1 year ago

When you create your form via FormFactory you can bind your entity to it. By using the magic "loadValidatorMetadata" inside your entity your "$form->isValid()" function will automatically validate your entity and map it with your form rows.

For more information and examples you can checkout my Silex-skeleton on Github. It contains loads of examples and best practices i use.

https://github.com/pix-art/Silex-Skeleton

Posted to Silex Custom Constraint with DI over 1 year ago

I rewrote this since i made a miss judgement, Never doubt Fabien ;-) They had this implemented the correct way -> See step 4 code for the changed code

Achievements
347 Karma
77,110 Total ProTip Views