forked from php-translation/extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue_111.php
More file actions
40 lines (34 loc) · 989 Bytes
/
Issue_111.php
File metadata and controls
40 lines (34 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Translation\Extractor\Tests\Resources\Github;
use Translation\Extractor\Annotation\Ignore;
class Issue111Type implements FormTypeInterface
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('field_1', null, array(
/** @Ignore */
'choices' => array(
'github.issue_111.c' => 'c'
)
));
$builder->add('field_2', null, array(
'choices' => array(
'github.issue_111.d' => 'd'
)
));
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
/** @Ignore */
'choices' => function (Options $options) {
return array(
'github.issue_111.a' => 'a',
'github.issue_111.b' => 'b'
);
},
'foo_bar' => true
));
}
}