[PR #42] [CLOSED] Added symfony command bin/phpdns, resolver that forwards queries to dns.google.com #66

Closed
opened 2026-03-04 23:24:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/42
Author: @ivanstan
Created: 4/13/2018
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • a677c63 Added class GoogleDNSForwarder which acts like a provider without actual
  • ab3cbd5 Created yaml configuration
  • 3ba88c8 added command bin/phpdns
  • 6013d8c implemented console error with verbose logging
  • b85261c Tests under namespace
  • ca359e3 tests moved
  • 739c6cd renamed storage provider to resolver
  • e21e7c3 moved resolvers under Resolver namespace
  • e6303e6 changed array definition
  • 47c5b33 changes in example files

📊 Changes

40 files changed (+1282 additions, -562 deletions)

View changed files

📝 .coveralls.yml (+2 -2)
📝 .gitignore (+3 -1)
📝 README.md (+22 -2)
bin/phpdns (+15 -0)
📝 bin/phpunit (+0 -0)
📝 composer.json (+10 -4)
etc/config.yml (+8 -0)
📝 etc/dns.example.json (+0 -0)
etc/dns.example.yml (+26 -0)
example.php (+0 -18)
example/example.php (+27 -0)
example/google_forwarder.php (+16 -0)
📝 phpunit.xml (+2 -2)
src/AbstractStorageProvider.php (+0 -12)
src/Command/ServerCommand.php (+119 -0)
src/Event/ConsoleEventSubscriber.php (+64 -0)
src/Event/EventSubscriberInterface.php (+28 -0)
src/Event/LogEventSubscriber.php (+49 -0)
src/JsonStorageProvider.php (+0 -120)
📝 src/RecordTypeEnum.php (+14 -6)

...and 20 more files

📄 Description

  • Symfony command
  • New GoogleResolver
  • Yaml configuration
  • Event subscribers inside Server class to decouple command output from stdout, will be needed later for Monolog integration
  • Changed directory structure a bit
  • Started changing codestyle to match Symfony

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yswery/PHP-DNS-SERVER/pull/42 **Author:** [@ivanstan](https://github.com/ivanstan) **Created:** 4/13/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`a677c63`](https://github.com/yswery/PHP-DNS-SERVER/commit/a677c6340e089cf4c54c65c5b54373c5dcc72944) Added class GoogleDNSForwarder which acts like a provider without actual - [`ab3cbd5`](https://github.com/yswery/PHP-DNS-SERVER/commit/ab3cbd5a7aedf918707f6c5000bc50d7524315e8) Created yaml configuration - [`3ba88c8`](https://github.com/yswery/PHP-DNS-SERVER/commit/3ba88c813eaf82ab95a0c6dc345113f70cfc0cd1) added command bin/phpdns - [`6013d8c`](https://github.com/yswery/PHP-DNS-SERVER/commit/6013d8c7404c8a905c7cb7422b4da5ca4932411a) implemented console error with verbose logging - [`b85261c`](https://github.com/yswery/PHP-DNS-SERVER/commit/b85261c5129112d640303239c64917daea0633ef) Tests under namespace - [`ca359e3`](https://github.com/yswery/PHP-DNS-SERVER/commit/ca359e3e26873a44dd39c8e55807ef359b8cd056) tests moved - [`739c6cd`](https://github.com/yswery/PHP-DNS-SERVER/commit/739c6cddb83e5cb6a586fa7cf9fe23fa069cc3a9) renamed storage provider to resolver - [`e21e7c3`](https://github.com/yswery/PHP-DNS-SERVER/commit/e21e7c32b1bfecadd2ba5ca17bcbefb7be59d9be) moved resolvers under Resolver namespace - [`e6303e6`](https://github.com/yswery/PHP-DNS-SERVER/commit/e6303e65a3a6ca5bc798f67b50fbe7d481fb5b42) changed array definition - [`47c5b33`](https://github.com/yswery/PHP-DNS-SERVER/commit/47c5b33e3d506ea1aba248383054fcabf3ff09a3) changes in example files ### 📊 Changes **40 files changed** (+1282 additions, -562 deletions) <details> <summary>View changed files</summary> 📝 `.coveralls.yml` (+2 -2) 📝 `.gitignore` (+3 -1) 📝 `README.md` (+22 -2) ➕ `bin/phpdns` (+15 -0) 📝 `bin/phpunit` (+0 -0) 📝 `composer.json` (+10 -4) ➕ `etc/config.yml` (+8 -0) 📝 `etc/dns.example.json` (+0 -0) ➕ `etc/dns.example.yml` (+26 -0) ➖ `example.php` (+0 -18) ➕ `example/example.php` (+27 -0) ➕ `example/google_forwarder.php` (+16 -0) 📝 `phpunit.xml` (+2 -2) ➖ `src/AbstractStorageProvider.php` (+0 -12) ➕ `src/Command/ServerCommand.php` (+119 -0) ➕ `src/Event/ConsoleEventSubscriber.php` (+64 -0) ➕ `src/Event/EventSubscriberInterface.php` (+28 -0) ➕ `src/Event/LogEventSubscriber.php` (+49 -0) ➖ `src/JsonStorageProvider.php` (+0 -120) 📝 `src/RecordTypeEnum.php` (+14 -6) _...and 20 more files_ </details> ### 📄 Description - Symfony command - New GoogleResolver - Yaml configuration - Event subscribers inside Server class to decouple command output from stdout, will be needed later for Monolog integration - Changed directory structure a bit - Started changing codestyle to match Symfony --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 23:24:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#66
No description provided.