files_external: allow to register config handlers for flexible placeholders
* BackendService (directly accessable via \OC_Server) offers registerConfigHandler
* SimpleSubstitutionTrait brings reusable logic for simple string replacments
* internal $user replacement mechanism was migrated
Signed-off-by:
Arthur Schiwon <blizzz@arthur-schiwon.de>
Showing
- apps/files_external/lib/AppInfo/Application.php 11 additions, 1 deletionapps/files_external/lib/AppInfo/Application.php
- apps/files_external/lib/Config/ConfigAdapter.php 2 additions, 4 deletionsapps/files_external/lib/Config/ConfigAdapter.php
- apps/files_external/lib/Config/IConfigHandler.php 39 additions, 0 deletionsapps/files_external/lib/Config/IConfigHandler.php
- apps/files_external/lib/Config/SimpleSubstitutionTrait.php 86 additions, 0 deletionsapps/files_external/lib/Config/SimpleSubstitutionTrait.php
- apps/files_external/lib/Config/UserPlaceholderHandler.php 53 additions, 0 deletionsapps/files_external/lib/Config/UserPlaceholderHandler.php
- apps/files_external/lib/Service/BackendService.php 68 additions, 0 deletionsapps/files_external/lib/Service/BackendService.php
- apps/files_external/lib/config.php 23 additions, 13 deletionsapps/files_external/lib/config.php
- apps/files_external/tests/Config/UserPlaceholderHandlerTest.php 81 additions, 0 deletions...iles_external/tests/Config/UserPlaceholderHandlerTest.php
- apps/files_external/tests/Service/BackendServiceTest.php 60 additions, 15 deletionsapps/files_external/tests/Service/BackendServiceTest.php
Loading
Please register or sign in to comment