From c35257e4c10261067d617ef3a1e540c7a4499bb6 Mon Sep 17 00:00:00 2001 From: denis Date: Sun, 3 Nov 2024 04:14:24 -0500 Subject: [PATCH] Update app/Services/Helpers/BlueprintExtensionLibrary.php --- .../Helpers/BlueprintExtensionLibrary.php | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/app/Services/Helpers/BlueprintExtensionLibrary.php b/app/Services/Helpers/BlueprintExtensionLibrary.php index 4b650d7..de22691 100644 --- a/app/Services/Helpers/BlueprintExtensionLibrary.php +++ b/app/Services/Helpers/BlueprintExtensionLibrary.php @@ -1,51 +1,51 @@ - - * @copyright 2023-2024 Emma (prpl.wtf) - * @license https://blueprint.zip/docs/?page=about/License MIT License - * @link https://blueprint.zip/docs/?page=documentation/$blueprint - * @since indev - * @deprecated alpha - */ - -namespace Pterodactyl\Services\Helpers; - -use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface; -use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService; - -class BlueprintExtensionLibrary -{ - public function __construct( - private SettingsRepositoryInterface $settings, - private BlueprintPlaceholderService $placeholder, - ) { - } - - public function dbGet($table, $record) { - return $this->settings->get($table."::".$record); - } - public function dbSet($table, $record, $value) { - return $this->settings->set($table."::".$record, $value); - } - - public function notify($text) { return false; } - public function notifyAfter($delay, $text) { return false; } - public function notifyNow($text) { return false; } - - public function fileRead($path) { return false; } - public function fileMake($path) { return false; } - public function fileWipe($path) { return false; } -} + + * @copyright 2023-2024 Emma (prpl.wtf) + * @license https://blueprint.zip/docs/?page=about/License MIT License + * @link https://blueprint.zip/docs/?page=documentation/$blueprint + * @since indev + * @deprecated alpha + */ + +namespace App\Services\Helpers; + +use App\Contracts\Repository\SettingsRepositoryInterface; +use App\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService; + +class BlueprintExtensionLibrary +{ + public function __construct( + private SettingsRepositoryInterface $settings, + private BlueprintPlaceholderService $placeholder, + ) { + } + + public function dbGet($table, $record) { + return $this->settings->get($table."::".$record); + } + public function dbSet($table, $record, $value) { + return $this->settings->set($table."::".$record, $value); + } + + public function notify($text) { return false; } + public function notifyAfter($delay, $text) { return false; } + public function notifyNow($text) { return false; } + + public function fileRead($path) { return false; } + public function fileMake($path) { return false; } + public function fileWipe($path) { return false; } +}