diff --git a/libraries/default/InboxProcessors/GenericInboxProcessor.php b/libraries/default/InboxProcessors/GenericInboxProcessor.php index 945aa57..f78a066 100644 --- a/libraries/default/InboxProcessors/GenericInboxProcessor.php +++ b/libraries/default/InboxProcessors/GenericInboxProcessor.php @@ -38,6 +38,10 @@ class GenericInboxProcessor $file->close(); } + protected function updateProcessingTemplate($request) + { + } + public function getRegisteredActions() { return $this->registeredActions; diff --git a/src/Controller/InboxController.php b/src/Controller/InboxController.php index a393ad3..b71e2d5 100644 --- a/src/Controller/InboxController.php +++ b/src/Controller/InboxController.php @@ -81,11 +81,11 @@ class InboxController extends AppController $request = $this->Inbox->get($id, ['contain' => ['Users' => ['Individuals' => ['Alignments' => 'Organisations']]]]); $scope = $request->scope; $action = $request->action; - $this->inboxProcessors = TableRegistry::getTableLocator()->get('InboxProcessors'); + $this->InboxProcessors = TableRegistry::getTableLocator()->get('InboxProcessors'); if ($scope == 'LocalTool') { - $processor = $this->inboxProcessors->getLocalToolProcessor($action, $request->local_tool_name); + $processor = $this->InboxProcessors->getLocalToolProcessor($action, $request->local_tool_name); } else { - $processor = $this->inboxProcessors->getProcessor($scope, $action); + $processor = $this->InboxProcessors->getProcessor($scope, $action); } if ($this->request->is('post')) { $processResult = $processor->process($id, $this->request->getData(), $request); diff --git a/src/Model/Table/InboxProcessorsTable.php b/src/Model/Table/InboxProcessorsTable.php index 0776f25..4bb1aea 100644 --- a/src/Model/Table/InboxProcessorsTable.php +++ b/src/Model/Table/InboxProcessorsTable.php @@ -12,7 +12,7 @@ class MissingInboxProcessorException extends Exception protected $_defaultCode = 404; } -class InboxProcessors extends AppTable +class InboxProcessorsTable extends AppTable { private $processorsDirectory = ROOT . '/libraries/default/InboxProcessors'; private $inboxProcessors;