Skip to content

Commit

Permalink
class name modifed and shortended
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed May 22, 2021
1 parent 4ce9838 commit ff83164
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
5 changes: 3 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

use Whoops\Handler\PrettyPageHandler;
use Whoops\Run;
use Xenon\Provider\GreenWebSms;
use Xenon\Provider\GreenWeb;
use Xenon\Provider\Ssl;
use Xenon\Sender;


Expand All @@ -16,7 +17,7 @@

$sender = Sender::getInstance();

$response = $sender->selectProvider(GreenWebSms::class)
$response = $sender->selectProvider(Ssl::class)
->setConfig(
[
'to' => '01XXXXXXXXX',
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GreenWebSms.php → src/Provider/GreenWeb.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Xenon\Handler\XenonException;
use Xenon\Sender;

class GreenWebSms extends AbstractProvider
class GreenWeb extends AbstractProvider
{
/**
* Green web SMS constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/MDLSms.php → src/Provider/MDL.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Xenon\Handler\XenonException;
use Xenon\Sender;

class MDLSms extends AbstractProvider
class MDL extends AbstractProvider
{
/**
* BulkSmsBD constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/MimSms.php → src/Provider/Mim.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Xenon\Provider;


class MimSms extends AbstractProvider
class Mim extends AbstractProvider
{

public function getData()
Expand Down
4 changes: 2 additions & 2 deletions src/Provider/OnnorokomSms.php → src/Provider/Onnorokom.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use Xenon\Handler\XenonException;
use Xenon\Sender;

class OnnorokomSms extends AbstractProvider
class Onnorokom extends AbstractProvider
{
/**
* OnnorokomSms constructor.
* Onnorokom constructor.
* @param Sender $sender
*/
public function __construct(Sender $sender)
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/SslSms.php → src/Provider/Ssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Xenon\Handler\XenonException;
use Xenon\Sender;

class SslSms extends AbstractProvider
class Ssl extends AbstractProvider
{
/**
* BulkSmsBD constructor.
Expand Down
5 changes: 2 additions & 3 deletions src/Sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
namespace Xenon;


use Xenon\Handler\XenonException;
use Exception;
use Xenon\Handler\XenonException;

class Sender
{
Expand Down Expand Up @@ -132,7 +132,7 @@ public function selectProvider($ProviderClass): Sender
{
try {
if (!class_exists($ProviderClass)) {
throw new XenonException('Provider not found');
throw new XenonException('Provider ' . $ProviderClass . ' not found');
}
} catch (XenonException $exception) {
$exception->showException($ProviderClass);
Expand All @@ -142,5 +142,4 @@ public function selectProvider($ProviderClass): Sender
return $this;
}


}

0 comments on commit ff83164

Please sign in to comment.