![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/pdf-ai.com/private_html/vendor/yoeunes/toastr/src/ |
<?php
/*
* This file is part of the yoeunes/toastr package.
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
*/
namespace Yoeunes\Toastr;
use Flasher\Laravel\Support\ServiceProvider;
class ToastrServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function afterBoot()
{
$this->publishes(array(
__DIR__.'/../config/toastr.php' => config_path('toastr.php'),
));
}
/**
* Register the service provider.
*
* @return void
*/
public function afterRegister()
{
$this->mergeConfigFrom(
__DIR__.'/../config/toastr.php',
'toastr'
);
$this->registerToastr();
}
/**
* Get the services provided by the provider.
*
* @return string[]
*/
public function provides()
{
return array(
'toastr',
);
}
/**
* @return ToastrPlugin
*/
public function createPlugin()
{
return new ToastrPlugin();
}
/**
* @return void
*/
private function registerToastr()
{
$this->app->singleton('toastr', function ($app) {
$options = $app['config']->get('toastr.options', array());
return new Toastr($app['flasher.toastr'], $options);
});
$this->app->alias('toastr', 'Yoeunes\Toastr\Toastr');
}
}