mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
remove filemanager api
This commit is contained in:
parent
e3598384ca
commit
317113f4cd
4 changed files with 0 additions and 52 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue