summaryrefslogtreecommitdiff
path: root/app/Api/Project.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-11 22:07:39 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-11 22:07:39 -0500
commit3699073371acc66ccacb56a89e87147a9c90d8c4 (patch)
treec21c55936e472655aaa5aca3a976a2d02a0ed63a /app/Api/Project.php
parente31185a2bd85d7d8e16a614cb21dfdbff10ce070 (diff)
Move project validator methods
Diffstat (limited to 'app/Api/Project.php')
-rw-r--r--app/Api/Project.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/Project.php b/app/Api/Project.php
index f934432d..8e311f7f 100644
--- a/app/Api/Project.php
+++ b/app/Api/Project.php
@@ -69,7 +69,7 @@ class Project extends Base
'description' => $description
);
- list($valid, ) = $this->project->validateCreation($values);
+ list($valid, ) = $this->projectValidator->validateCreation($values);
return $valid ? $this->project->create($values) : false;
}
@@ -81,7 +81,7 @@ class Project extends Base
'description' => $description
);
- list($valid, ) = $this->project->validateModification($values);
+ list($valid, ) = $this->projectValidator->validateModification($values);
return $valid && $this->project->update($values);
}
}