We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95fd507 + 7019790 commit f654c22Copy full SHA for f654c22
DependencyInjection/CmfCoreExtension.php
@@ -73,12 +73,16 @@ public function prepend(ContainerBuilder $container)
73
'persistence' => array(
74
'phpcr' => array(
75
'enabled' => $persistenceConfig['enabled'],
76
- 'image' => array(
77
- 'basepath' => $persistenceConfig['basepath'].'/media',
78
- )
79
)
80
81
);
+ // if cmf_media is there, it will prepend the image path to its media_basepath
+ // setting.
+ if (!isset($extensions['cmf_media'])) {
82
+ $prependConfig['persistence']['phpcr']['image'] = array(
83
+ 'basepath' => $persistenceConfig['basepath'].'/media',
84
+ );
85
+ }
86
break;
87
case 'cmf_media':
88
$prependConfig = array(
0 commit comments