Skip to content

Commit

Permalink
fix SmsApiTransportFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
szepczynski committed May 23, 2020
1 parent d905277 commit c9f55b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SmsapiTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class SmsapiTransportFactory extends AbstractTransportFactory
public function create(Dsn $dsn): TransportInterface
{
$scheme = $dsn->getScheme();
$authToken = ltrim($dsn->getPath(), '/');
$authToken = $dsn->getUser();
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
$from = $dsn->getOption('from');
$port = $dsn->getPort();

if (!$id) {
if (!$authToken) {
throw new IncompleteDsnException('Missing path (maybe you haven\'t update the DSN when upgrading from 5.0).', $dsn->getOriginalDsn());
}

Expand Down

0 comments on commit c9f55b8

Please sign in to comment.