From 4cd931fcc6bb7f794fd14ddb75c7867823449e79 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 9 Sep 2019 16:04:12 +0200 Subject: require IChecks to receive entity context Signed-off-by: Arthur Schiwon --- apps/workflowengine/lib/Check/FileName.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'apps/workflowengine/lib/Check/FileName.php') 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 @@ -48,15 +42,6 @@ class FileName extends AbstractStringCheck implements IFileCheck { $this->request = $request; } - /** - * @param IStorage $storage - * @param string $path - */ - public function setFileInfo(IStorage $storage, $path) { - $this->storage = $storage; - $this->path = $path; - } - /** * @return string */ -- cgit v1.2.3