| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Freyo\LaravelQueueRocketMQ; |
||||||
| 4 | |||||||
| 5 | use Freyo\LaravelQueueRocketMQ\Queue\Connectors\RocketMQConnector; |
||||||
| 6 | use Illuminate\Queue\QueueManager; |
||||||
| 7 | use Illuminate\Support\ServiceProvider; |
||||||
| 8 | use Laravel\Lumen\Application as LumenApplication; |
||||||
|
0 ignored issues
–
show
|
|||||||
| 9 | |||||||
| 10 | class LaravelQueueRocketMQServiceProvider extends ServiceProvider |
||||||
| 11 | { |
||||||
| 12 | /** |
||||||
| 13 | * Register the service provider. |
||||||
| 14 | * |
||||||
| 15 | * @return void |
||||||
| 16 | */ |
||||||
| 17 | public function register() |
||||||
| 18 | { |
||||||
| 19 | if ($this->app instanceof LumenApplication) { |
||||||
| 20 | $this->app->configure('queue'); |
||||||
|
0 ignored issues
–
show
The method
configure() does not exist on Illuminate\Contracts\Foundation\Application.
(
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...
|
|||||||
| 21 | } |
||||||
| 22 | |||||||
| 23 | $this->mergeConfigFrom( |
||||||
| 24 | __DIR__.'/../config/rocketmq.php', 'queue.connections.rocketmq' |
||||||
| 25 | ); |
||||||
| 26 | } |
||||||
| 27 | |||||||
| 28 | /** |
||||||
| 29 | * Register the application's event listeners. |
||||||
| 30 | * |
||||||
| 31 | * @return void |
||||||
| 32 | */ |
||||||
| 33 | public function boot() |
||||||
| 34 | { |
||||||
| 35 | /** @var QueueManager $queue */ |
||||||
| 36 | $queue = $this->app['queue']; |
||||||
| 37 | |||||||
| 38 | $queue->addConnector('rocketmq', function () { |
||||||
| 39 | return new RocketMQConnector(); |
||||||
| 40 | }); |
||||||
| 41 | } |
||||||
| 42 | } |
||||||
| 43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths