Skip to content

Commit 7e9a987

Browse files
committed
Add ability to load a specific PSL section
The `PublicSuffixListManager` class is updated to enable its `getList` method to return a `PublicSuffixList` object containing a specific section of the PSL To avoid BC break, the following constants are added to the class: - `PublicSuffixListManager::ICANN_SECTION` to load the ICANN section - `PublicSuffixListManager::ICANN_PSL_PHP_FILE` to cache the ICANN section - `PublicSuffixListManager::PRIVATE_SECTION` to load the PRIVATE section - `PublicSuffixListManager::PRIVATE_PSL_PHP_FILE` to cache the PRIVATE section An optional parameter is added to `PublicSuffixListManager::getList` to enable loading a specific section. To avoild BC break if an invalid section name is provided the method will return the full list. The method `PublicSuffixListManager::refreshPublicSuffixList` is updated to manage creating and updating each section cache list.
1 parent 45c89d2 commit 7e9a987

File tree

6 files changed

+26265
-330
lines changed

6 files changed

+26265
-330
lines changed

0 commit comments

Comments
 (0)