/home/techb158/ileadtechnology.com/vendor/smodav/mpesa/src/Mpesa/Laravel
NameSizeModeActions
Facades/-0755rm
Stores/-0755rm
ServiceProvider.php19210755editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/smodav/mpesa/src/Mpesa/Laravel/ServiceProvider.php (1921B)
publishes([ __DIR__ . '/../../../config/mpesa.php' => config_path('mpesa.php') ]); } /** * Registrar the application services. */ public function register() { $this->bindInstances(); $this->registerFacades(); } /** * Bind the MPesa Instances. * * @return void */ private function bindInstances() { $this->app->bind(ConfigurationStore::class, LaravelConfig::class); $this->app->bind(CacheStore::class, LaravelCache::class); $this->app->singleton(Core::class, function ($app) { $config = $app->make(ConfigurationStore::class); $cache = $app->make(CacheStore::class); return new Core(new Client, $config, $cache); }); } private function registerFacades() { $this->app->bind('mp_stk', function () { return $this->app->make(STK::class); }); $this->app->bind('mp_registrar', function () { return $this->app->make(Registrar::class); }); $this->app->bind('mp_identity', function () { return $this->app->make(Identity::class); }); $this->app->bind('mp_simulate', function () { return $this->app->make(Simulate::class); }); } }