nextcloud/lib/private/Template/ResourceNotFoundException.php
Côme Chilliet 73447618e7
chore: Run rector on lib/private/Template folder and cleanup more typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-29 12:23:37 +02:00

24 lines
534 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OC\Template;
class ResourceNotFoundException extends \LogicException {
public function __construct(
protected string $resource,
protected string $webPath,
) {
parent::__construct('Resource not found');
}
public function getResourcePath(): string {
return $this->webPath . '/' . $this->resource;
}
}