File tree Expand file tree Collapse file tree 4 files changed +14
-25
lines changed Expand file tree Collapse file tree 4 files changed +14
-25
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Name: silverstripe-azure-flysystem
3
3
Only :
4
4
envvarset : AZURE_CONNECTION_URL
5
5
After :
6
- - ' # assetsflysystem'
6
+ - assetsflysystem
7
7
---
8
8
SilverStripe\Core\Injector\Injector :
9
9
FullscreenInteractive\SilverStripe\AzureStorage\Adapter\PublicAdapter :
@@ -35,16 +35,3 @@ SilverStripe\Core\Injector\Injector:
35
35
constructor :
36
36
adapter : ' %$FullscreenInteractive\SilverStripe\AzureStorage\Adapter\ProtectedAdapter'
37
37
cache : ' %$League\Flysystem\Cached\Storage\Adapter.protected'
38
- League\Flysystem\Filesystem.tinymce :
39
- class : ' League\Flysystem\Filesystem'
40
- constructor :
41
- FilesystemAdapter : ' %$FullscreenInteractive\SilverStripe\AzureStorage\Adapter\TinyMceAdapter'
42
- FilesystemConfig :
43
- visibility : public
44
- TinyMCEGeneratedAssetHandler :
45
- class : ' SilverStripe\Assets\Flysystem\GeneratedAssets'
46
- properties :
47
- Filesystem : ' %$League\Flysystem\Filesystem.tinymce'
48
- SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator :
49
- properties :
50
- AssetHandler : ' %$TinyMCEGeneratedAssetHandler'
Original file line number Diff line number Diff line change 5
5
use Exception ;
6
6
use FullscreenInteractive \SilverStripe \AzureStorage \Model \BlobCache ;
7
7
use League \Flysystem \Cached \Storage \AbstractCache ;
8
+ use League \Flysystem \Util ;
8
9
9
10
class DBCache extends AbstractCache
10
11
{
@@ -52,6 +53,15 @@ public function load()
52
53
}
53
54
}
54
55
56
+ public function has ($ path )
57
+ {
58
+ if (strpos ($ path , '_tinymce ' ) !== false ) {
59
+ return false ;
60
+ }
61
+
62
+ return parent ::has ($ path );
63
+ }
64
+
55
65
/**
56
66
* @throws Exception
57
67
*/
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class PublicCachedAdapter extends CachedAdapter implements PublicAdapter
9
9
{
10
10
public function getPublicUrl ($ path )
11
11
{
12
- return $ this ->getAdapter ()->getPublicUrl ($ path );
12
+ $ url = $ this ->getAdapter ()->getPublicUrl ($ path );
13
+
14
+ return $ url ;
13
15
}
14
16
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments