Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Jul 13, 2021
1 parent 1546a1e commit 7722d32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class UploadPictureConsumer implements ConsumerInterface
* `bitrix-rabbitmq:purge` Purge a consumer's queue
* `bitrix-abbitmq:setup-fabric` Sets up the Rabbit MQ fabric
* `bitrix-rabbitmq:stdin-producer` Executes a producer that reads data from STDIN
* `bitrix-rabbitmq:rpc-server` Start RPC server

В папке `/install/bin` модуля лежит файл `rabbitmq`. При установке модуля система попробует скопировать его в директорию,
`bin`, лежащую двумя уровнями выше `DOCUMENT_ROOT`. Если такой директории не существует, то сделано ничего не будет. Придется
Expand Down
6 changes: 4 additions & 2 deletions install/bin/rabbitmq
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ define('NO_AGENT_STATISTIC', 'Y');
define('NO_AGENT_CHECK', true);
defined('PUBLIC_AJAX_MODE') || define('PUBLIC_AJAX_MODE', true);


/** @noinspection PhpIncludeInspection */
require_once $autoloadPath;

Expand Down Expand Up @@ -63,7 +62,10 @@ if ($bitrixStatus !== 200) {

Loader::includeModule('proklung.rabbitmq');

$commands = CommandsSetup::load(Services::getInstance());
$services = new Services();
$services->load();

$commands = CommandsSetup::load($services->getContainer());

$application = new ConsoleCommandConfigurator(
new Application(),
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/RpcServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$this->getContainer()
->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name')))
->get(sprintf('rabbitmq.%s_server', $input->getArgument('name')))
->start($amount);

return 0;
Expand Down

0 comments on commit 7722d32

Please sign in to comment.