36 lines
637 B
PHP
36 lines
637 B
PHP
<?php
|
|
|
|
namespace SimpleSoftwareIO\QrCode;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class QrCodeServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Indicates if loading of the provider is deferred.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $defer = true;
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->bind('qrcode', function () {
|
|
return new BaconQrCodeGenerator();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Get the services provided by the provider.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function provides()
|
|
{
|
|
return ['qrcode'];
|
|
}
|
|
}
|