This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Services for a bundle are always loaded | |
# hello configLoad() will be called automatically (if defined) | |
# Namespaces can be simplified | |
doctrine: | |
dbal: | |
dbname: xxxxxxxx | |
user: xxxxxxxx | |
password: ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using a static OptionSupport class that automatically writes options into properties AND fields extend it. | |
+ Options are set in the very beginning of the constructor | |
+ Concise | |
+ Error if option is not supported | |
+ Everything is a property, no special treatment of options | |
+ Good performance | |
+ Static options can be hidden from public access | |
- Private properties wouldn't work, access not allowed from parent classes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Form\Forms; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
class ApplicationFormType extends AbstractType |