fix: [inbox] Missing `Table` in class name

pull/59/head
mokaddem 2021-06-18 11:59:25 +02:00
parent afa2b2872d
commit 063575d8b3
3 changed files with 8 additions and 4 deletions

View File

@ -38,6 +38,10 @@ class GenericInboxProcessor
$file->close();
}
protected function updateProcessingTemplate($request)
{
}
public function getRegisteredActions()
{
return $this->registeredActions;

View File

@ -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);

View File

@ -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;