|
@@ -36,15 +36,13 @@ class OnuExportService
|
|
'format' => $format,
|
|
'format' => $format,
|
|
'filename' => $filename,
|
|
'filename' => $filename,
|
|
'notificationId' => $notification['id'],
|
|
'notificationId' => $notification['id'],
|
|
- 'endpointBase' => 'https://'.getenv('HOST_BASE'),
|
|
|
|
- 'endpointOnus' => 'https://'.getenv('HOST_FTTH')."/api/onus-export",
|
|
|
|
'params' => [
|
|
'params' => [
|
|
'client_id' => getenv('OAUTH_CLIENT_ID'),
|
|
'client_id' => getenv('OAUTH_CLIENT_ID'),
|
|
'client_secret' => getenv('OAUTH_CLIENT_SECRET'),
|
|
'client_secret' => getenv('OAUTH_CLIENT_SECRET'),
|
|
'grant_type' => 'client_credentials'
|
|
'grant_type' => 'client_credentials'
|
|
]
|
|
]
|
|
]);
|
|
]);
|
|
- $amqpChannel->basic_publish(new AMQPMessage((string) $msgBody), '','export.ftth');
|
|
|
|
|
|
+ $amqpChannel->basic_publish(new AMQPMessage((string) $msgBody), '', getenv('FTTH_EXPORT'));
|
|
}else{
|
|
}else{
|
|
if ($this->container->has('monolog.logger.webservice')) {
|
|
if ($this->container->has('monolog.logger.webservice')) {
|
|
$this->container->get('monolog.logger.webservice')->error("Can't create a notification in Base");
|
|
$this->container->get('monolog.logger.webservice')->error("Can't create a notification in Base");
|