for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PragmaBroadvertising\SolarEdge;
use Illuminate\Support\ServiceProvider;
use PragmaBroadvertising\SolarEdge\Models\SolarEdge;
use PragmaBroadvertising\SolarEdge\Models\SolarEdgeClient;
class SolarEdgeServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__ . '/config/main.php' => config_path('laravel-solaredge-api.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/main.php' => /** @scrutinizer ignore-call */ config_path('laravel-solaredge-api.php')
], 'laravel-solaredge-api');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(
__DIR__ . '/config/main.php', 'laravel-solaredge-api'
);
$this->app->register('Ixudra\Curl\CurlServiceProvider');
$this->app->bind('solaredge', function() {
return new SolarEdge(new SolarEdgeClient());
});