⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
b2c-booking.dev-unit.com
/
modules
/
View File Name :
ModuleServiceProvider.php
<?php namespace Modules; use Illuminate\Contracts\Foundation\CachesConfiguration; class ModuleServiceProvider extends \Illuminate\Support\ServiceProvider { public static $name; public static $desc = ""; public static $version = "1.0"; public static $author = ""; public static $thumb; public static $screenshot; public static $core_compatible = []; public static $isPro = false; /** * @return array */ public static function getAdminMenu(){ return []; } /** * @return array */ public static function getAdminMenuGroups() { return []; } /** * @return array */ public static function getAdminSubmenu(){ return []; } /** * @return array */ public static function getBookableServices() { return []; } /** * @return array */ public static function getPayableServices(){ return []; } /** * @return array */ public static function getReviewableServices(){ return []; } public static function getMenuBuilderTypes(){ return []; } public static function adminUserMenu(){ return []; } public static function adminUserSubMenu(){ return []; } public static function getUserMenu(){ return []; } public static function getUserSubMenu(){ return []; } public static function getTemplateBlocks(){ return []; } public static function getPaymentGateway(){ return []; } public static function getActionsHook(){ return []; } public static function getFiltersHook(){ return []; } function register() { $actions = static::getActionsHook(); if(!empty($actions)){ foreach ($actions as $args){ call_user_func_array('add_action',$args); } } $filters = static::getFiltersHook(); if(!empty($filters)){ foreach ($filters as $args){ call_user_func_array('add_filter',$args); } } } /** * Merge the given configuration with the existing configuration. * * @param string $path * @param string $key * @return void */ protected function mergeConfigFrom($path, $key) { if (! ($this->app instanceof CachesConfiguration && $this->app->configurationIsCached())) { $config = $this->app->make('config'); // Allow overwrite config $config->set($key, array_merge( $config->get($key, []),require $path, )); } } public static function getName(){ $class = explode('\\',static::class); return static::$name ?: $class[1]; } public static function getDesc(){ return static::$desc; } public static function getThumb(){ return static::$thumb; } public static function getVersion(){ return static::$version; } public static function getAuthor(){ return static::$author; } public static function getScreenshot(){ return static::$screenshot; } }