mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-25 17:25:53 +03:00
[PR #2] [MERGED] Defined StorageProvider #40
Labels
No labels
bug
enhancement
enhancement
hacktoberfest
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PHP-DNS-SERVER#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:master📝 Commits (1)
68e494bDefined 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.