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

Added questions on Form and Symfony3 categories #24

Merged
merged 1 commit into from Dec 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions data/forms.yml
Expand Up @@ -108,3 +108,15 @@ questions:
- {value: "$this->createFormBuilder(null, $defaults)", correct: false}
- {value: "$this->createFormBuilder()->setDefaults($defaults)", correct: false}
- {value: "$this->createFormBuilder()->addDefaults($defaults)", correct: false}
-
question: 'Your Form class must extends ____ '
answers:
- {value: Symfony\Component\Form\FormType, correct: false}
- {value: Symfony\Component\Form\AbstractType, correct: true}
- {value: Symfony\Component\Form\AbstractFormType, correct: false}
-
question: 'How to add an extra field `extra` with the form ?'
answers:
- {value: "$builder->add('extra', null, ['mapped' => false])", correct: true}
- {value: "$builder->add('extra', hidden, ['mapped' => false])", correct: true}
- {value: "$builder->add('extra', null, ['validation' => false]", correct: false}
7 changes: 7 additions & 0 deletions data/symfony3.yml
@@ -1,2 +1,9 @@
category: Symfony3
questions:
-
question: '[SF3] What is the default signal sent by Process component to stop a process ?'
answers:
- {value: 'SIGINT', correct: false}
- {value: 'SIGKILL', correct: true}
- {value: 'Process::STOP', correct: false}
- {value: '9', correct: true}