Skip to content

Commit ee98077

Browse files
committed
fix(snowflake): Register private class as alias of public interface
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
1 parent 7b0eb95 commit ee98077

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/private/AppFramework/Http/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private function executeController(Controller $controller, string $methodName):
204204
try {
205205
$response = \call_user_func_array([$controller, $methodName], $arguments);
206206
} catch (\TypeError $e) {
207-
// Only intercept TypeErrors occurring on the first line, meaning that the invocation of the controller method failed.
207+
// Only intercept TypeErrors occuring on the first line, meaning that the invocation of the controller method failed.
208208
// Any other TypeError happens inside the controller method logic and should be logged as normal.
209209
if ($e->getFile() === $this->reflector->getFile() && $e->getLine() === $this->reflector->getStartLine()) {
210210
$this->logger->debug('Failed to call controller method: ' . $e->getMessage(), ['exception' => $e]);

lib/private/Server.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ public function __construct($webRoot, \OC\Config $config) {
288288
$this->registerAlias(\OCP\Template\ITemplateManager::class, \OC\Template\TemplateManager::class);
289289

290290
$this->registerAlias(IActionFactory::class, ActionFactory::class);
291+
$this->registerAlias(IGenerator::class, Generator::class);
292+
$this->registerAlias(IDecoder::class, Decoder::class);
291293

292294
$this->registerService(View::class, function (Server $c) {
293295
return new View();

0 commit comments

Comments
 (0)