diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 16:04:12 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:05 +0200 |
commit | 4cd931fcc6bb7f794fd14ddb75c7867823449e79 (patch) | |
tree | 0d2a6d1083dc865407cbe9cd891c977c0e4c9f06 /apps/workflowengine/lib/Check/FileName.php | |
parent | fd2de58503a3c915cf178385db3e9962845719c4 (diff) | |
download | nextcloud-server-4cd931fcc6bb7f794fd14ddb75c7867823449e79.tar.gz nextcloud-server-4cd931fcc6bb7f794fd14ddb75c7867823449e79.zip |
require IChecks to receive entity context
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib/Check/FileName.php')
-rw-r--r-- | apps/workflowengine/lib/Check/FileName.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index 76c48b7955e..62ee601980b 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -23,22 +23,16 @@ declare(strict_types=1); namespace OCA\WorkflowEngine\Check; use OCA\WorkflowEngine\Entity\File; -use OCP\Files\Storage\IStorage; use OCP\IL10N; use OCP\IRequest; use OCP\WorkflowEngine\IFileCheck; class FileName extends AbstractStringCheck implements IFileCheck { + use TFileCheck; /** @var IRequest */ protected $request; - /** @var IStorage */ - protected $storage; - - /** @var string */ - protected $path; - /** * @param IL10N $l * @param IRequest $request @@ -49,15 +43,6 @@ class FileName extends AbstractStringCheck implements IFileCheck { } /** - * @param IStorage $storage - * @param string $path - */ - public function setFileInfo(IStorage $storage, $path) { - $this->storage = $storage; - $this->path = $path; - } - - /** * @return string */ protected function getActualValue(): string { |