henryejemuta /
laravel-monnify
| 1 | <?php |
||||||||
| 2 | /** |
||||||||
| 3 | * Created By: Henry Ejemuta |
||||||||
| 4 | * Project: laravel-monnify |
||||||||
| 5 | * Class Name: LaravelMonnifyServiceProvider.php |
||||||||
| 6 | * Date Created: 7/13/20 |
||||||||
| 7 | * Time Created: 6:40 PM |
||||||||
| 8 | */ |
||||||||
| 9 | |||||||||
| 10 | namespace HenryEjemuta\LaravelMonnify; |
||||||||
| 11 | |||||||||
| 12 | use HenryEjemuta\LaravelMonnify\Console\InstallLaravelMonnify; |
||||||||
| 13 | use Illuminate\Support\ServiceProvider; |
||||||||
| 14 | |||||||||
| 15 | |||||||||
| 16 | class LaravelMonnifyServiceProvider extends ServiceProvider |
||||||||
| 17 | { |
||||||||
| 18 | |||||||||
| 19 | /** |
||||||||
| 20 | * Indicates if loading of the provider is deferred. |
||||||||
| 21 | * |
||||||||
| 22 | * @var bool |
||||||||
| 23 | */ |
||||||||
| 24 | protected $defer = false; |
||||||||
| 25 | |||||||||
| 26 | |||||||||
| 27 | /** |
||||||||
| 28 | * Boot the service provider. |
||||||||
| 29 | */ |
||||||||
| 30 | public function boot() |
||||||||
| 31 | { |
||||||||
| 32 | if (function_exists('config_path') && $this->app->runningInConsole()) { |
||||||||
|
0 ignored issues
–
show
|
|||||||||
| 33 | $this->publishes([ |
||||||||
|
0 ignored issues
–
show
The method
publishes() does not exist on HenryEjemuta\LaravelMonn...lMonnifyServiceProvider.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||||
| 34 | __DIR__ . '/../config/config.php' => config_path('monnify.php'), |
||||||||
| 35 | ], 'config'); |
||||||||
| 36 | |||||||||
| 37 | $this->commands([ |
||||||||
|
0 ignored issues
–
show
The method
commands() does not exist on HenryEjemuta\LaravelMonn...lMonnifyServiceProvider.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||||
| 38 | InstallLaravelMonnify::class, |
||||||||
| 39 | ]); |
||||||||
| 40 | } |
||||||||
| 41 | } |
||||||||
| 42 | |||||||||
| 43 | |||||||||
| 44 | /** |
||||||||
| 45 | * Register the service provider. |
||||||||
| 46 | * |
||||||||
| 47 | * @return void |
||||||||
| 48 | */ |
||||||||
| 49 | public function register() |
||||||||
| 50 | { |
||||||||
| 51 | $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'monnify'); |
||||||||
|
0 ignored issues
–
show
The method
mergeConfigFrom() does not exist on HenryEjemuta\LaravelMonn...lMonnifyServiceProvider.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||||
| 52 | |||||||||
| 53 | $this->app->singleton('monnify', function($app) |
||||||||
|
0 ignored issues
–
show
The method
singleton() does not exist on Tests\Laravel\App.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
The parameter
$app is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||||||
| 54 | { |
||||||||
| 55 | $baseUrl = config('monnify.base_url'); |
||||||||
| 56 | $instanceName = 'monnify'; |
||||||||
| 57 | |||||||||
| 58 | |||||||||
| 59 | return new Monnify( |
||||||||
| 60 | $baseUrl, |
||||||||
| 61 | $instanceName, |
||||||||
| 62 | config('monnify') |
||||||||
| 63 | ); |
||||||||
| 64 | }); |
||||||||
| 65 | |||||||||
| 66 | } |
||||||||
| 67 | } |
||||||||
| 68 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.