|
@@ 55-64 (lines=10) @@
|
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
$translationTargets = []; |
| 55 |
|
if ($config['gedmo']['enabled']) { |
| 56 |
|
$isEnabled = true; |
| 57 |
|
$loader->load('service_gedmo.xml'); |
| 58 |
|
|
| 59 |
|
$translationTargets['gedmo']['implements'] = array_merge( |
| 60 |
|
['Sonata\TranslationBundle\Model\Gedmo\TranslatableInterface'], |
| 61 |
|
$config['gedmo']['implements'] |
| 62 |
|
); |
| 63 |
|
$translationTargets['gedmo']['instanceof'] = $config['gedmo']['instanceof']; |
| 64 |
|
} |
| 65 |
|
if ($config['knplabs']['enabled']) { |
| 66 |
|
$isEnabled = true; |
| 67 |
|
$loader->load('service_knplabs.xml'); |
|
@@ 65-74 (lines=10) @@
|
| 62 |
|
); |
| 63 |
|
$translationTargets['gedmo']['instanceof'] = $config['gedmo']['instanceof']; |
| 64 |
|
} |
| 65 |
|
if ($config['knplabs']['enabled']) { |
| 66 |
|
$isEnabled = true; |
| 67 |
|
$loader->load('service_knplabs.xml'); |
| 68 |
|
|
| 69 |
|
$translationTargets['knplabs']['implements'] = array_merge( |
| 70 |
|
['Sonata\TranslationBundle\Model\TranslatableInterface'], |
| 71 |
|
$config['knplabs']['implements'] |
| 72 |
|
); |
| 73 |
|
$translationTargets['knplabs']['instanceof'] = $config['knplabs']['instanceof']; |
| 74 |
|
} |
| 75 |
|
if ($config['phpcr']['enabled']) { |
| 76 |
|
$isEnabled = true; |
| 77 |
|
$loader->load('service_phpcr.xml'); |
|
@@ 75-87 (lines=13) @@
|
| 72 |
|
); |
| 73 |
|
$translationTargets['knplabs']['instanceof'] = $config['knplabs']['instanceof']; |
| 74 |
|
} |
| 75 |
|
if ($config['phpcr']['enabled']) { |
| 76 |
|
$isEnabled = true; |
| 77 |
|
$loader->load('service_phpcr.xml'); |
| 78 |
|
|
| 79 |
|
$translationTargets['phpcr']['implements'] = array_merge( |
| 80 |
|
[ |
| 81 |
|
'Sonata\TranslationBundle\Model\Phpcr\TranslatableInterface', |
| 82 |
|
'Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface', |
| 83 |
|
], |
| 84 |
|
$config['phpcr']['implements'] |
| 85 |
|
); |
| 86 |
|
$translationTargets['phpcr']['instanceof'] = $config['phpcr']['instanceof']; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if (true === $isEnabled) { |
| 90 |
|
$loader->load('block.xml'); |