From 3f7840c4db7384eb142f92c33330827b8d7255f9 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 5 Nov 2016 22:26:58 -0400 Subject: Add the possibility to create external tasks --- app/Core/ExternalTask/AccessForbiddenException.php | 5 ++-- app/Core/ExternalTask/ExternalTaskException.php | 15 ++++++++++ app/Core/ExternalTask/ExternalTaskInterface.php | 26 ++++++++++++++++ .../ExternalTask/ExternalTaskProviderInterface.php | 35 ++++++++++++---------- app/Core/ExternalTask/NotFoundException.php | 4 +-- .../ExternalTask/ProviderNotFoundException.php | 4 +-- 6 files changed, 64 insertions(+), 25 deletions(-) create mode 100644 app/Core/ExternalTask/ExternalTaskException.php create mode 100644 app/Core/ExternalTask/ExternalTaskInterface.php (limited to 'app/Core') diff --git a/app/Core/ExternalTask/AccessForbiddenException.php b/app/Core/ExternalTask/AccessForbiddenException.php index a379d812..2b5ebd33 100644 --- a/app/Core/ExternalTask/AccessForbiddenException.php +++ b/app/Core/ExternalTask/AccessForbiddenException.php @@ -2,13 +2,12 @@ namespace Kanboard\Core\ExternalTask; -use Exception; - /** * Class AccessForbiddenException * * @package Kanboard\Core\ExternalTask + * @author Frederic Guillot */ -class AccessForbiddenException extends Exception +class AccessForbiddenException extends ExternalTaskException { } diff --git a/app/Core/ExternalTask/ExternalTaskException.php b/app/Core/ExternalTask/ExternalTaskException.php new file mode 100644 index 00000000..07e5665d --- /dev/null +++ b/app/Core/ExternalTask/ExternalTaskException.php @@ -0,0 +1,15 @@ +