File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333use OCA \Files_External \Config \UserPlaceholderHandler ;
3434use OCA \Files_External \Listener \GroupDeletedListener ;
3535use OCA \Files_External \Listener \UserDeletedListener ;
36- use OCA \Files_External \Service \DBConfigService ;
3736use OCA \Files_External \Lib \Auth \AmazonS3 \AccessKey ;
3837use OCA \Files_External \Lib \Auth \Builtin ;
3938use OCA \Files_External \Lib \Auth \NullMechanism ;
7069use OCP \AppFramework \Bootstrap \IRegistrationContext ;
7170use OCP \Files \Config \IMountProviderCollection ;
7271use OCP \Group \Events \GroupDeletedEvent ;
73- use OCP \IGroup ;
74- use OCP \IUser ;
7572use OCP \User \Events \UserDeletedEvent ;
76- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
77- use Symfony \Component \EventDispatcher \GenericEvent ;
78- use function foo \func ;
7973
8074require_once __DIR__ . '/../../3rdparty/autoload.php ' ;
8175
@@ -112,7 +106,7 @@ public function boot(IBootContext $context): void {
112106 'name ' => $ l ->t ('External storages ' ),
113107 ];
114108 });
115- $ context ->injectFn (function (BackendService $ backendService , UserPlaceholderHandler $ userConfigHandler ) {
109+ $ context ->injectFn (function (BackendService $ backendService , UserPlaceholderHandler $ userConfigHandler ) {
116110 $ backendService ->registerBackendProvider ($ this );
117111 $ backendService ->registerAuthMechanismProvider ($ this );
118112 $ backendService ->registerConfigHandler ('user ' , function () use ($ userConfigHandler ) {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ protected function configure() {
119119 }
120120
121121 protected function execute (InputInterface $ input , OutputInterface $ output ): int {
122- $ user = $ input ->getOption ('user ' );
122+ $ user = ( string ) $ input ->getOption ('user ' );
123123 $ mountPoint = $ input ->getArgument ('mount_point ' );
124124 $ storageIdentifier = $ input ->getArgument ('storage_backend ' );
125125 $ authIdentifier = $ input ->getArgument ('authentication_backend ' );
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ protected function configure() {
107107 }
108108
109109 protected function execute (InputInterface $ input , OutputInterface $ output ): int {
110- $ user = $ input ->getOption ('user ' );
110+ $ user = ( string ) $ input ->getOption ('user ' );
111111 $ path = $ input ->getArgument ('path ' );
112112 if ($ path === '- ' ) {
113113 $ json = file_get_contents ('php://stdin ' );
You can’t perform that action at this time.
0 commit comments