Skip to content

Commit

Permalink
Implemented SiteAccess-aware Flysystem v2 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Dec 12, 2022
1 parent 7b39720 commit a198a5d
Show file tree
Hide file tree
Showing 13 changed files with 801 additions and 141 deletions.
5 changes: 4 additions & 1 deletion src/bundle/Core/Resources/config/default_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,11 @@ parameters:
##
ibexa.orm.entity_mappings: []

# fallback for existing project configuration, should be overridden
dfs_nfs_path: '%ibexa.io.dir.storage%'

ibexa.io.nfs.adapter.config:
root: './'
root: '%dfs_nfs_path%'
path: '$var_dir$/$storage_dir$/'
writeFlags: ~
linkHandling: ~
Expand Down
51 changes: 0 additions & 51 deletions src/bundle/IO/Flysystem/Adapter/SiteAccessAwareLocalAdapter.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/bundle/IO/Resources/config/io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,6 @@ services:
class: Ibexa\Bundle\IO\ApiLoader\HandlerRegistry

# Inject the siteaccess config into a few io services
Ibexa\Core\IO\Adapter\LocalAdapter:
autoconfigure: true
arguments:
- '@Ibexa\Core\IO\IOConfigProvider'
- '@ibexa.config.resolver'

Ibexa\Bundle\IO\Flysystem\Adapter\SiteAccessAwareLocalAdapter:
arguments:
$configProcessor: '@Ibexa\Contracts\Core\SiteAccess\ConfigProcessor'
$config: '%ibexa.io.nfs.adapter.config%'

ibexa.io.nfs.adapter.site_access_aware:
alias: Ibexa\Bundle\IO\Flysystem\Adapter\SiteAccessAwareLocalAdapter

Ibexa\Core\IO\UrlDecorator\AbsolutePrefix:
class: Ibexa\Core\IO\UrlDecorator\AbsolutePrefix
arguments:
Expand Down
71 changes: 0 additions & 71 deletions src/lib/IO/Adapter/LocalAdapter.php

This file was deleted.

Loading

0 comments on commit a198a5d

Please sign in to comment.