litgroup / dns-bundle
React DNS integration for Symfony2.
Installs: 119
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
- litgroup/event-loop-bundle: 0.3.*
- react/dns: 0.4.*
- symfony/framework-bundle: ~2.3
Requires (Dev)
- phpunit/phpunit: 4.1.*@stable
This package is not auto-updated.
Last update: 2022-02-01 12:36:33 UTC
README
🚫 (This project is no longer maintained.)
This bundle integrates React DNS into the Symfony 2 environment.
Installation
Use composer to install LitGroupDnsBundle:
"require": { "litgroup/dns-bundle": "1.0.x-dev" }
Register bundle in the AppKernel:
<?php // AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... // LitGroupEventLoopBundle should be registered first: new LitGroup\Bundle\EventLoopBundle\LitGroupEventLoopBundle(), new LitGroup\Bundle\DnsBundle\LitGroupDnsBundle(), ]; // ... return $bundles; } // ... }
Configuration
lit_group_dns: nameserver: '8.8.8.8' // Nameserver IP address (required): cache: true // Use cached DNS resolver (optional, default: false)
Usage
Use litgroup_dns.resolver
service to receive React\Dns\Resolver\Resolver
.
See React DNS library documentation for more details.
License
See details in the Resources/meta/LICENSE
.