From aea9e26f15bf7e7330c62dc92d12581376288620 Mon Sep 17 00:00:00 2001
From: tinect
Date: Mon, 21 Jan 2019 20:31:07 +0100
Subject: [PATCH] initialize Froshing
---
.gitignore | 2 +
Components/BunnyCDNAdapter.php | 2 +-
FroshBunnycdnMediaStorage.php | 9 +++++
Resources/services.xml | 10 ++---
Subscriber/AdapterCollectionSubscriber.php | 5 +--
TinectMediaBunnycdn.php | 9 -----
composer.json | 13 ++-----
plugin.xml | 43 ++++++++++------------
8 files changed, 41 insertions(+), 52 deletions(-)
create mode 100644 .gitignore
create mode 100644 FroshBunnycdnMediaStorage.php
delete mode 100644 TinectMediaBunnycdn.php
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c5287f4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.idea/
+vendor
\ No newline at end of file
diff --git a/Components/BunnyCDNAdapter.php b/Components/BunnyCDNAdapter.php
index 9032e7d..04fe7e7 100644
--- a/Components/BunnyCDNAdapter.php
+++ b/Components/BunnyCDNAdapter.php
@@ -1,6 +1,6 @@
- %kernel.cache_dir%/bunnycdn
+ %kernel.cache_dir%/bunnycdn
-
+
-
+
-
- %swag_media_bunnycdn.cache_dir%
+
+ %frosh_bunnycdn_media_storage.cache_dir%
diff --git a/Subscriber/AdapterCollectionSubscriber.php b/Subscriber/AdapterCollectionSubscriber.php
index 993ccfe..d7300fb 100644
--- a/Subscriber/AdapterCollectionSubscriber.php
+++ b/Subscriber/AdapterCollectionSubscriber.php
@@ -1,12 +1,12 @@
false];
$config = $args->get('config');
-
return new BunnyCDNAdapter(array_merge($config,$defaultConfig), $this->cache, $this->container);
}
}
diff --git a/TinectMediaBunnycdn.php b/TinectMediaBunnycdn.php
deleted file mode 100644
index 8f6766b..0000000
--- a/TinectMediaBunnycdn.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
- 1.0.2
- tinect
- MIT
-
-
+
+
- BunnyCDN-Extension for Media Adapter
+ 1.0.3
+ Friends of Shopware
+ MIT
+ https://github.com/FriendsOfShopware/FroshBunnycdnMediaStorage
+ Friends of Shopware
-config.php:
-'cdn' =>
- [
- 'backend' => 'bunnycdn',
- 'adapters' => [
- 'bunnycdn' =>
- array (
- 'type' => 'bunnycdn',
- 'mediaUrl' => 'https://example.b-cdn.net/',
- 'apiUrl' => 'https://storage.bunnycdn.com/example/',
- 'apiKey' => 'secret-api-key'
- )
- ]
-dont't forget running "bin/console sw:media:migrate --from=local --to=bunnycdn" if you have existing media.
-More Info: https://developers.shopware.com/developers-guide/shopware-5-media-service/#file-system-adapters
- ]]>
+ Media-Storage-Adapter for bunnyCDN
+ Media-Storage-Adapter für bunnyCDN
+
+ Willkommen bei Frosh
+ Welcome to Frosh
+
+
+