1 | <?php |
||
2 | |||
3 | namespace Gewaer\Providers; |
||
4 | |||
5 | use Phalcon\Di\ServiceProviderInterface; |
||
6 | use Phalcon\DiInterface; |
||
7 | use function Gewaer\Core\envValue; |
||
8 | |||
9 | class QueueProvider implements ServiceProviderInterface |
||
10 | { |
||
11 | /** |
||
12 | * @param DiInterface $container |
||
13 | */ |
||
14 | 72 | public function register(DiInterface $container) |
|
15 | { |
||
16 | 72 | $container->setShared( |
|
17 | 72 | 'queue', |
|
18 | function () { |
||
19 | //Connect to the queue |
||
20 | 3 | $queue = new \PhpAmqpLib\Connection\AMQPStreamConnection( |
|
0 ignored issues
–
show
|
|||
21 | envValue('RABBITMQ_HOST'), |
||
22 | envValue('RABBITMQ_PORT'), |
||
23 | envValue('RABBITMQ_DEFAULT_USER'), |
||
24 | envValue('RABBITMQ_DEFAULT_PASS') |
||
25 | ); |
||
26 | |||
27 | return $queue; |
||
28 | 72 | } |
|
29 | ); |
||
30 | 72 | } |
|
31 | } |
||
32 |
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