Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of additional replacements #97

Merged
merged 2 commits into from Jul 14, 2022

Commits on Jul 14, 2022

  1. feat: allow configuring the ConfigPostProcessor

    Per a suggestion in laminas#94, this patch modifies the `ConfigPostProcessor` such that it now examines the merged configuration passed to it for its own configuration, specifically for replacement rules.
    These may be provided via the following configuration:
    
    ```php
    return [
        'laminas-zendframework-bridge' => [
            'replacements' => [
                'to-replace' => 'replacement',
                // ...
            ],
        ],
    ];
    ```
    
    This configuration itself will NEVER be rewritten.
    However, the rules will now be used as additional replacements when running the processor.
    
    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed Jul 14, 2022
    Copy the full SHA
    ed68ef0 View commit details
    Browse the repository at this point in the history
  2. docs: detail how new configuration works

    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed Jul 14, 2022
    Copy the full SHA
    a1479a9 View commit details
    Browse the repository at this point in the history