mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:21:23 +03:30
29 lines
529 B
PHP
29 lines
529 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class MessageServiceProvider extends ServiceProvider
|
|
{
|
|
protected $defer = true;
|
|
|
|
|
|
public function register()
|
|
{
|
|
$this->app->singleton('messages', function() {
|
|
return new \App\Appended\Classes\Common\Response\MessageResponse;
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Get the services provided by the provider.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function provides()
|
|
{
|
|
return [MessageResponse::class];
|
|
}
|
|
}
|