Skip to content

Commit

Permalink
Fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
noglitchyo committed Aug 5, 2020
1 parent fc47845 commit 4872e58
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 6 deletions.
Empty file modified examples/docker-firefox/README.md
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/.env.dist
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/docker-compose.yaml
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/nginx/certs/localhost.crt
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/nginx/certs/localhost.key
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/nginx/dhparam.pem
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/nginx/nginx.conf
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified examples/docker-firefox/docker/php/Dockerfile
100644 → 100755
Empty file.
Empty file modified examples/docker-firefox/docker/src/composer.json
100644 → 100755
Empty file.
8 changes: 5 additions & 3 deletions examples/docker-firefox/docker/src/public/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
use Http\Adapter\Guzzle6\Client;
use NoGlitchYo\Dealdoh\Client\DohClient;
use NoGlitchYo\Dealdoh\Client\StdClient;
use NoGlitchYo\Dealdoh\Client\Transport\DnsOverTcpTransport;
use NoGlitchYo\Dealdoh\Client\Transport\DnsOverUdpTransport;
use NoGlitchYo\Dealdoh\DohProxy;
use NoGlitchYo\Dealdoh\Entity\DnsUpstreamPool;
use NoGlitchYo\Dealdoh\Factory\Dns\MessageFactory;
Expand All @@ -11,7 +13,6 @@
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;
use Socket\Raw\Factory;

require __DIR__ . '/../vendor/autoload.php';

Expand All @@ -37,8 +38,9 @@ function (ServerRequestInterface $request, ResponseInterface $response, $args) {
$dnsMessageFactory
),
new StdClient(
new Factory(),
$dnsMessageFactory
$dnsMessageFactory,
new DnsOverTcpTransport(),
new DnsOverUdpTransport()
),
]
);
Expand Down
Empty file modified examples/slim-integration/README.md
100644 → 100755
Empty file.
Empty file modified examples/slim-integration/composer.json
100644 → 100755
Empty file.
8 changes: 5 additions & 3 deletions examples/slim-integration/public/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
use Http\Adapter\Guzzle6\Client;
use NoGlitchYo\Dealdoh\Client\DohClient;
use NoGlitchYo\Dealdoh\Client\StdClient;
use NoGlitchYo\Dealdoh\Client\Transport\DnsOverTcpTransport;
use NoGlitchYo\Dealdoh\Client\Transport\DnsOverUdpTransport;
use NoGlitchYo\Dealdoh\DohProxy;
use NoGlitchYo\Dealdoh\Entity\DnsUpstreamPool;
use NoGlitchYo\Dealdoh\Factory\Dns\MessageFactory;
use NoGlitchYo\Dealdoh\Factory\DohHttpMessageFactory;
use NoGlitchYo\Dealdoh\Service\DnsPoolResolver;
use Slim\App;
use Socket\Raw\Factory;

require __DIR__ . '/../vendor/autoload.php';

Expand All @@ -34,8 +35,9 @@ function (ServerRequestInterface $request, ResponseInterface $response, $args) {
$dnsMessageFactory
),
new StdClient(
new Factory(),
$dnsMessageFactory
$dnsMessageFactory,
new DnsOverTcpTransport(),
new DnsOverUdpTransport()
),
]
);
Expand Down

0 comments on commit 4872e58

Please sign in to comment.