remove filemanager api

This commit is contained in:
Bozhidar 2024-05-14 16:14:37 +03:00
parent e3598384ca
commit 317113f4cd
4 changed files with 0 additions and 52 deletions

View file

@ -4,7 +4,6 @@ namespace Modules\LetsEncrypt\Listeners;
use App\ApiClient;
use App\Events\DomainIsCreated;
use App\FileManagerApi;
use App\Models\DomainSslCertificate;
use App\Models\HostingPlan;
use App\Models\HostingSubscription;

View file

@ -1,46 +0,0 @@
<?php
namespace App;
class FileManagerApi
{
public function isDir($path)
{
return is_dir($path);
}
public function isFile($path)
{
return is_file($path);
}
public function isWritable($path)
{
return is_writable($path);
}
public function mkdir($path)
{
return mkdir($path, 0755, true);
}
public function fileGetContents($file)
{
return file_get_contents($file);
}
public function symlink($source, $destination)
{
return symlink($source, $destination);
}
public function fileExists($file)
{
return file_exists($file);
}
public function filePutContents($file, $data)
{
return file_put_contents($file, $data);
}
}

View file

@ -5,7 +5,6 @@ namespace App;
use Illuminate\Foundation\Application;
/**
* @property \App\FileManagerApi $file_manager_api
* @property \App\VirtualHosts\ApacheVirtualHostManager $virtualHostManager
*/
class PhyreLaravelApplication extends Application

View file

@ -46,10 +46,6 @@ class AppServiceProvider extends ServiceProvider
]);
});
App::singleton('file_manager_api', function () {
return new \App\FileManagerApi();
});
App::singleton('virtualHostManager', function () {
return new \App\VirtualHosts\ApacheVirtualHostManager();
});