Skip to content

Commit 35d9e26

Browse files
committed
ACPT-1225: Fix SVC for application-server PR
1 parent 88368df commit 35d9e26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Webapi/ErrorProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public function __construct(
9797
$this->_filesystem = $filesystem;
9898
$this->directoryWrite = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
9999
$this->serializer = $serializer ?: ObjectManager::getInstance()->get(Json::class);
100+
$this->registerShutdownFunction();
100101
}
101102

102103
/**
@@ -283,7 +284,7 @@ protected function _formatError($errorMessage, $trace, $httpCode, $format)
283284
*
284285
* @return $this
285286
*/
286-
public function __destruct()
287+
public function registerShutdownFunction()
287288
{
288289
register_shutdown_function([$this, self::DEFAULT_SHUTDOWN_FUNCTION]);
289290
return $this;

0 commit comments

Comments
 (0)