mirror of
https://github.com/nextcloud/server.git
synced 2026-10-31 18:15:57 +01:00
24 lines
480 B
PHP
24 lines
480 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace OC\Console;
|
|
|
|
use OCP\Console\ISignalHandler;
|
|
use Override;
|
|
|
|
class SignalHandlerAdapter implements ISignalHandler {
|
|
public function __construct(
|
|
private readonly CommandAdapter $commandAdapter,
|
|
) {
|
|
}
|
|
|
|
#[Override]
|
|
public function abortIfInterrupted(): void {
|
|
$this->commandAdapter->abortIfInterrupted();
|
|
}
|
|
}
|