@@ 43-54 (lines=12) @@ | ||
40 | /** |
|
41 | * {@inheritdoc} |
|
42 | */ |
|
43 | public function create(ObjectManager $manager, $locale = null): Fixtures |
|
44 | { |
|
45 | $options = [ |
|
46 | 'providers' => $this->providers, |
|
47 | ]; |
|
48 | ||
49 | if (null !== $locale) { |
|
50 | $options['locale'] = $locale; |
|
51 | } |
|
52 | ||
53 | return new Fixtures($manager, $options, $this->processors); |
|
54 | } |
|
55 | } |
|
56 |
@@ 16-29 (lines=14) @@ | ||
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function create(ObjectManager $om, $locale = null): Fixtures |
|
17 | { |
|
18 | $options = [ |
|
19 | 'providers' => $this->providers, |
|
20 | ]; |
|
21 | ||
22 | if (null !== $locale) { |
|
23 | $options['locale'] = $locale; |
|
24 | } |
|
25 | ||
26 | $doctrinePersister = new Doctrine($om); |
|
27 | ||
28 | return new Fixtures($doctrinePersister, $options, $this->processors); |
|
29 | } |
|
30 | } |
|
31 |