PHP code example of litgroup / dns-bundle
1. Go to this page and download the library: Download litgroup/dns-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
litgroup / dns-bundle example snippets
// 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;
}
// ...
}