bakaphp /
phalcon-api
| 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 | // $container->setShared( |
||
| 17 | // 'queue', |
||
| 18 | // function () { |
||
| 19 | // //Connect to the queue |
||
| 20 | // $queue = new \PhpAmqpLib\Connection\AMQPStreamConnection( |
||
| 21 | // envValue('RABBITMQ_HOST'), |
||
| 22 | // envValue('RABBITMQ_PORT'), |
||
| 23 | // envValue('RABBITMQ_DEFAULT_USER'), |
||
| 24 | // envValue('RABBITMQ_DEFAULT_PASS') |
||
| 25 | // ); |
||
| 26 | |||
| 27 | // return $queue; |
||
| 28 | // } |
||
| 29 | // ); |
||
| 30 | |||
| 31 | 72 | $container->setShared( |
|
| 32 | 72 | 'queue', |
|
| 33 | function () { |
||
| 34 | //Connect to the queue |
||
| 35 | 3 | $queue = new Beanstalk([ |
|
|
0 ignored issues
–
show
|
|||
| 36 | 'host' => envValue('DATA_API_BEANSTALK_HOST', '127.0.0.1'), |
||
| 37 | 'prefix' => envValue('DATA_API_BEANSTALK_PORT', 11300), |
||
| 38 | ]); |
||
| 39 | return $queue; |
||
| 40 | 72 | } |
|
| 41 | ); |
||
| 42 | 72 | } |
|
| 43 | } |
||
| 44 |
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