for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fomvasss\Currency;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__.'/../config/currency.php' => config_path('currency.php')
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__.'/../config/currency.php' => /** @scrutinizer ignore-call */ config_path('currency.php')
], 'config');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/currency.php', 'currency');
$this->registerCurrency();
public function registerCurrency()
$this->app->singleton('currency', function ($app) {
return new Currency($app->config->get('currency', []));
});
$this->app->alias(Currency::class, 'fomvasss-currency');