diff --git a/config/services.yaml b/config/services.yaml index e32c865..96feaef 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -28,5 +28,7 @@ services: $available_currencies: '%app.currencies%' App\Service\CurrencyListerInterface: '@App\Service\StaticCurrencyLister' + App\Service\QRCodeQROptionsProviderInterface: '@App\Service\QRCodeQROptionsDefaultProvider' + # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones diff --git a/src/Service/QRCodeQROptionsDefaultProvider.php b/src/Service/QRCodeQROptionsDefaultProvider.php new file mode 100644 index 0000000..653a571 --- /dev/null +++ b/src/Service/QRCodeQROptionsDefaultProvider.php @@ -0,0 +1,21 @@ +qrCodeDefaultOptions = new QRCodeQROptions( + 1, + 0 + ); + } + + public function getDefault(): QRCodeQROptions { + return $this->qrCodeDefaultOptions; + } +} diff --git a/src/Service/QRCodeQROptionsProviderInterface.php b/src/Service/QRCodeQROptionsProviderInterface.php new file mode 100644 index 0000000..f830c86 --- /dev/null +++ b/src/Service/QRCodeQROptionsProviderInterface.php @@ -0,0 +1,10 @@ +