CompositePolicyCollector
Magento\Csp\Model\CompositePolicyCollector
What it does
This class collects Content Security Policy (CSP) rules from multiple sources and merges them into a unified set.
Developers use this when they need to gather CSP policies from various collectors (like config, modules, or custom sources) and combine duplicate policies with the same ID into single policy objects.
It's the main entry point for aggregating all CSP policies in a Magento 2 application.
Public Methods
- collect()