André Wisplinghoff
Sven Münnich
'cdn' => [
'backend' => 'aws',
'local' => [
'type' => 'local',
'mediaUrl' => '',
'path' => realpath(__DIR__ . '/../../../')
],
'webdav' => [
'type' => 'webdav',
'mediaUrl' => 'http://webdav-server/',
'url' => 'http://webdav-server/'
],
'sftp' => [
'type' => 'sftp',
'mediaUrl' => 'http://localhost/cdn_sftp/',
'host' => 'localhost',
'username' => 'username',
'privateKey' => '/path/to/id_rsa',
'root' => '/var/www/cdn_sftp'
],
'aws' => [
'type' => 'aws',
'key' => '',
'secret' => '',
'region' => '',
'bucket' => '',
'mediaUrl' => ''
]
]
interface MediaServiceInterface
{
public function getUrl($path);
public function read($path);
public function write($path, $contents);
public function has($path);
public function delete($path);
public function getSize($path);
public function rename($path, $newpath);
}
return new ArrayCollection([
new MediaPosition('s_articles_img', 'media_id', 'id'),
new MediaPosition('s_categories', 'mediaID', 'id'),
new MediaPosition('s_emarketing_banners', 'img', 'path'),
new MediaPosition('s_blog_media', 'media_id', 'id'),
new MediaPosition('s_core_config_mails_attachments', 'mediaID', 'id'),
new MediaPosition('s_filter_values', 'media_id', 'id'),
new MediaPosition('s_emotion_element_value', 'value', 'path'),
new MediaPosition('s_emotion', 'landingpage_teaser', 'path'),
new MediaPosition('s_articles_downloads', 'filename', 'path'),
new MediaPosition('s_articles_supplier', 'img', 'path')
]);
Shopware_Collect_MediaPositions