[PR #2] [MERGED] Defined StorageProvider #40

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

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/2
Author: @ivanstan
Created: 9/13/2014
Status: Merged
Merged: 9/14/2014
Merged by: @yswery

Base: masterHead: master


📝 Commits (1)

  • 68e494b Defined AbstractStorageProvider and implemented JsonStorageProvider.

📊 Changes

5 files changed (+107 additions, -60 deletions)

View changed files

StorageProvider/AbstractStorageProvider.php (+9 -0)
StorageProvider/JsonStorageProvider.php (+65 -0)
dns_record.json (+12 -0)
📝 dns_server.class.php (+7 -41)
📝 example.php (+14 -19)

📄 Description

Server Class is now dependant on AbstractStorageClass and expects derivate of such class as a first argument allowing creation of different dns storage classes. Derivate of AbstractStorageProvider requires implemented get_answer method which handles query. As an example json storage provider is implemented at the moment. Feature tested on linux.


🔄 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/2 **Author:** [@ivanstan](https://github.com/ivanstan) **Created:** 9/13/2014 **Status:** ✅ Merged **Merged:** 9/14/2014 **Merged by:** [@yswery](https://github.com/yswery) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`68e494b`](https://github.com/yswery/PHP-DNS-SERVER/commit/68e494bebaf544e59887d386099d68dec25e9fb8) Defined AbstractStorageProvider and implemented JsonStorageProvider. ### 📊 Changes **5 files changed** (+107 additions, -60 deletions) <details> <summary>View changed files</summary> ➕ `StorageProvider/AbstractStorageProvider.php` (+9 -0) ➕ `StorageProvider/JsonStorageProvider.php` (+65 -0) ➕ `dns_record.json` (+12 -0) 📝 `dns_server.class.php` (+7 -41) 📝 `example.php` (+14 -19) </details> ### 📄 Description Server Class is now dependant on AbstractStorageClass and expects derivate of such class as a first argument allowing creation of different dns storage classes. Derivate of AbstractStorageProvider requires implemented get_answer method which handles query. As an example json storage provider is implemented at the moment. Feature tested on linux. --- <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:00 +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#40
No description provided.