diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-11 22:07:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-11 22:07:39 -0500 |
commit | 3699073371acc66ccacb56a89e87147a9c90d8c4 (patch) | |
tree | c21c55936e472655aaa5aca3a976a2d02a0ed63a /app/Api | |
parent | e31185a2bd85d7d8e16a614cb21dfdbff10ce070 (diff) |
Move project validator methods
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/Me.php | 2 | ||||
-rw-r--r-- | app/Api/Project.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/Api/Me.php b/app/Api/Me.php index 37851731..df8ec070 100644 --- a/app/Api/Me.php +++ b/app/Api/Me.php @@ -44,7 +44,7 @@ class Me extends Base 'is_private' => 1, ); - list($valid, ) = $this->project->validateCreation($values); + list($valid, ) = $this->projectValidator->validateCreation($values); return $valid ? $this->project->create($values, $this->userSession->getId(), true) : false; } 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); } } |