Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Jan 17, 2022
1 parent 6f359e3 commit 81459c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Provider/ECourier.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use GuzzleHttp\Exception\GuzzleException;
use Xenon\MultiCourier\Handler\ParameterException;
use Xenon\MultiCourier\Handler\RenderException;
use Xenon\MultiCourier\Handler\RequestException;
use Xenon\MultiCourier\Request;
use Xenon\MultiCourier\Sender;
Expand Down Expand Up @@ -44,11 +45,16 @@ public function __construct(Sender $sender, string $environment = 'local')
* Send Request To Api and Send Message
* @throws GuzzleException
* @throws ParameterException|RequestException
* @throws RenderException
*/
public function sendRequest()
{
$endpoint = $this->senderObject->getRequestEndpoint();
$config = $this->senderObject->getConfig();
$courierConfig = config('courier');
if ($courierConfig == null) {
throw new RenderException("No courier.php file exist inside config directory. You should publish vendor Xenon\MultiCourier\MultiCourierServiceProvider");
}

$providerConfiguration = config('courier')['providers'][get_class($this)];

Expand Down

0 comments on commit 81459c0

Please sign in to comment.