webparking /
laravel-queue-ensurer
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Webparking\QueueEnsurer; |
||||||
| 4 | |||||||
| 5 | use Illuminate\Console\Scheduling\Schedule; |
||||||
| 6 | use Illuminate\Support\ServiceProvider as BaseServiceProvider; |
||||||
| 7 | use Webparking\QueueEnsurer\Commands\EnsureProcesses; |
||||||
| 8 | |||||||
| 9 | class ServiceProvider extends BaseServiceProvider |
||||||
| 10 | { |
||||||
| 11 | 7 | public function register(): void |
|||||
| 12 | { |
||||||
| 13 | 7 | $this->mergeConfigFrom( |
|||||
|
0 ignored issues
–
show
|
|||||||
| 14 | 7 | __DIR__ . '/../config/queue-ensurer.php', |
|||||
| 15 | 7 | 'queue-ensurer' |
|||||
| 16 | ); |
||||||
| 17 | 7 | } |
|||||
| 18 | |||||||
| 19 | 7 | public function boot(): void |
|||||
| 20 | { |
||||||
| 21 | 7 | $this->publishes([ |
|||||
|
0 ignored issues
–
show
The method
publishes() does not exist on Webparking\QueueEnsurer\ServiceProvider.
(
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...
|
|||||||
| 22 | 7 | __DIR__ . '/../config/queue-ensurer.php' => config_path('queue-ensurer.php'), |
|||||
| 23 | 7 | ], 'config'); |
|||||
| 24 | |||||||
| 25 | 7 | if ($this->app->runningInConsole()) { |
|||||
|
0 ignored issues
–
show
The method
runningInConsole() does not exist on 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...
|
|||||||
| 26 | 7 | $this->commands([ |
|||||
|
0 ignored issues
–
show
The method
commands() does not exist on Webparking\QueueEnsurer\ServiceProvider.
(
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...
|
|||||||
| 27 | 7 | EnsureProcesses::class, |
|||||
| 28 | ]); |
||||||
| 29 | |||||||
| 30 | 7 | if (config('queue-ensurer.schedule')) { |
|||||
| 31 | $this->app->booted(function () { |
||||||
|
0 ignored issues
–
show
The method
booted() does not exist on 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...
|
|||||||
| 32 | /** @var Schedule $schedule */ |
||||||
| 33 | 7 | $schedule = app(Schedule::class); |
|||||
| 34 | 7 | $schedule->command(EnsureProcesses::class)->everyMinute(); |
|||||
| 35 | 7 | }); |
|||||
| 36 | } |
||||||
| 37 | } |
||||||
| 38 | 7 | } |
|||||
| 39 | } |
||||||
| 40 |
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.