@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | protected $mounts = []; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $mountPoint |
|
| 33 | + */ |
|
| 31 | 34 | protected function registerMount($userId, $storage, $mountPoint, $arguments = null) { |
| 32 | 35 | if (!isset($this->mounts[$userId])) { |
| 33 | 36 | $this->mounts[$userId] = []; |
@@ -26,11 +26,8 @@ |
||
| 26 | 26 | use OCA\Files_external\NotFoundException; |
| 27 | 27 | use OCA\Files_external\Service\GlobalStoragesService; |
| 28 | 28 | use Symfony\Component\Console\Command\Command; |
| 29 | -use Symfony\Component\Console\Helper\Table; |
|
| 30 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 31 | 29 | use Symfony\Component\Console\Input\InputArgument; |
| 32 | 30 | use Symfony\Component\Console\Input\InputInterface; |
| 33 | -use Symfony\Component\Console\Input\InputOption; |
|
| 34 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
| 35 | 32 | |
| 36 | 33 | class Config extends Base { |
@@ -31,13 +31,10 @@ |
||
| 31 | 31 | use OCP\IUserManager; |
| 32 | 32 | use OCP\IUserSession; |
| 33 | 33 | use Symfony\Component\Console\Command\Command; |
| 34 | -use Symfony\Component\Console\Helper\Table; |
|
| 35 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 36 | 34 | use Symfony\Component\Console\Input\ArrayInput; |
| 37 | 35 | use Symfony\Component\Console\Input\InputArgument; |
| 38 | 36 | use Symfony\Component\Console\Input\InputInterface; |
| 39 | 37 | use Symfony\Component\Console\Input\InputOption; |
| 40 | -use Symfony\Component\Console\Input\Input; |
|
| 41 | 38 | use Symfony\Component\Console\Output\OutputInterface; |
| 42 | 39 | |
| 43 | 40 | class Import extends Base { |
@@ -329,7 +329,7 @@ |
||
| 329 | 329 | /** |
| 330 | 330 | * find all available languages for an app |
| 331 | 331 | * @param string $app App that needs to be translated |
| 332 | - * @return array an array of available languages |
|
| 332 | + * @return string[] an array of available languages |
|
| 333 | 333 | * @deprecated 9.0.0 Use \OC::$server->getL10NFactory()->findAvailableLanguages() instead |
| 334 | 334 | */ |
| 335 | 335 | public static function findAvailableLanguages($app=null) { |
@@ -22,15 +22,12 @@ |
||
| 22 | 22 | namespace OCA\Files_External\Command; |
| 23 | 23 | |
| 24 | 24 | use OC\Core\Command\Base; |
| 25 | -use OCA\Files_external\Lib\StorageConfig; |
|
| 26 | 25 | use OCA\Files_external\NotFoundException; |
| 27 | 26 | use OCA\Files_external\Service\GlobalStoragesService; |
| 28 | 27 | use OCA\Files_external\Service\UserStoragesService; |
| 29 | 28 | use OCP\IUserManager; |
| 30 | 29 | use OCP\IUserSession; |
| 31 | 30 | use Symfony\Component\Console\Command\Command; |
| 32 | -use Symfony\Component\Console\Helper\Table; |
|
| 33 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 34 | 31 | use Symfony\Component\Console\Input\ArrayInput; |
| 35 | 32 | use Symfony\Component\Console\Input\InputArgument; |
| 36 | 33 | use Symfony\Component\Console\Input\InputInterface; |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | use OCP\Encryption\Exceptions\GenericEncryptionException; |
| 35 | 35 | use OCP\IConfig; |
| 36 | 36 | use OCP\ILogger; |
| 37 | -use OCP\IUser; |
|
| 38 | 37 | use OCP\IUserSession; |
| 39 | 38 | |
| 40 | 39 | class Crypt { |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | use OCP\Encryption\Exceptions\GenericEncryptionException; |
| 35 | 35 | use OCP\IConfig; |
| 36 | 36 | use OCP\ILogger; |
| 37 | -use OCP\IUser; |
|
| 38 | 37 | use OCP\IUserSession; |
| 39 | 38 | |
| 40 | 39 | class Crypt { |
@@ -28,8 +28,6 @@ |
||
| 28 | 28 | use OCP\IGroupManager; |
| 29 | 29 | use OCP\IUserManager; |
| 30 | 30 | use Symfony\Component\Console\Command\Command; |
| 31 | -use Symfony\Component\Console\Helper\Table; |
|
| 32 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 33 | 31 | use Symfony\Component\Console\Input\InputArgument; |
| 34 | 32 | use Symfony\Component\Console\Input\InputInterface; |
| 35 | 33 | use Symfony\Component\Console\Input\InputOption; |
@@ -22,18 +22,12 @@ |
||
| 22 | 22 | namespace OCA\Files_External\Command; |
| 23 | 23 | |
| 24 | 24 | use OC\Core\Command\Base; |
| 25 | -use OCA\Files_External\Lib\Auth\AuthMechanism; |
|
| 26 | 25 | use OCA\Files_External\Lib\Backend\Backend; |
| 27 | 26 | use OCA\Files_External\Lib\DefinitionParameter; |
| 28 | 27 | use OCA\Files_External\Service\BackendService; |
| 29 | 28 | use Symfony\Component\Console\Command\Command; |
| 30 | -use Symfony\Component\Console\Helper\Table; |
|
| 31 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 32 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 33 | 29 | use Symfony\Component\Console\Input\InputArgument; |
| 34 | 30 | use Symfony\Component\Console\Input\InputInterface; |
| 35 | -use Symfony\Component\Console\Input\InputOption; |
|
| 36 | -use Symfony\Component\Console\Input\Input; |
|
| 37 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
| 38 | 32 | |
| 39 | 33 | class Backends extends Base { |