fix: [inbox] Missing `Table` in class name
parent
afa2b2872d
commit
063575d8b3
|
@ -38,6 +38,10 @@ class GenericInboxProcessor
|
||||||
$file->close();
|
$file->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function updateProcessingTemplate($request)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public function getRegisteredActions()
|
public function getRegisteredActions()
|
||||||
{
|
{
|
||||||
return $this->registeredActions;
|
return $this->registeredActions;
|
||||||
|
|
|
@ -81,11 +81,11 @@ class InboxController extends AppController
|
||||||
$request = $this->Inbox->get($id, ['contain' => ['Users' => ['Individuals' => ['Alignments' => 'Organisations']]]]);
|
$request = $this->Inbox->get($id, ['contain' => ['Users' => ['Individuals' => ['Alignments' => 'Organisations']]]]);
|
||||||
$scope = $request->scope;
|
$scope = $request->scope;
|
||||||
$action = $request->action;
|
$action = $request->action;
|
||||||
$this->inboxProcessors = TableRegistry::getTableLocator()->get('InboxProcessors');
|
$this->InboxProcessors = TableRegistry::getTableLocator()->get('InboxProcessors');
|
||||||
if ($scope == 'LocalTool') {
|
if ($scope == 'LocalTool') {
|
||||||
$processor = $this->inboxProcessors->getLocalToolProcessor($action, $request->local_tool_name);
|
$processor = $this->InboxProcessors->getLocalToolProcessor($action, $request->local_tool_name);
|
||||||
} else {
|
} else {
|
||||||
$processor = $this->inboxProcessors->getProcessor($scope, $action);
|
$processor = $this->InboxProcessors->getProcessor($scope, $action);
|
||||||
}
|
}
|
||||||
if ($this->request->is('post')) {
|
if ($this->request->is('post')) {
|
||||||
$processResult = $processor->process($id, $this->request->getData(), $request);
|
$processResult = $processor->process($id, $this->request->getData(), $request);
|
||||||
|
|
|
@ -12,7 +12,7 @@ class MissingInboxProcessorException extends Exception
|
||||||
protected $_defaultCode = 404;
|
protected $_defaultCode = 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
class InboxProcessors extends AppTable
|
class InboxProcessorsTable extends AppTable
|
||||||
{
|
{
|
||||||
private $processorsDirectory = ROOT . '/libraries/default/InboxProcessors';
|
private $processorsDirectory = ROOT . '/libraries/default/InboxProcessors';
|
||||||
private $inboxProcessors;
|
private $inboxProcessors;
|
||||||
|
|
Loading…
Reference in New Issue