view icon indicating copy to clipboard operation
view copied to clipboard

Fix di-web for Theme pathMap configuration with multiple paths

Open mariovials opened this issue 10 months ago • 1 comments

Allows you to use a directory array as the source of the view files, as described in the documentation of the Theme class

Q A
Is bugfix? ✔️
New feature?
Breaks BC?

Without this, when configuring a theme with multiple paths, the following error occurs image

'yiisoft/view' => [
    'theme' => [
        'pathMap' => [
            '/app/views' => [
                '/app/themes/christmas',
                '/app/themes/basic',
            ],
        ],
        ...
    ],
],

now you can set up a theme as described in the Theme documentation, for multiple cascading directories, as this is the main functionality of Theme

mariovials avatar Mar 18 '25 14:03 mariovials

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.51%. Comparing base (071a326) to head (b8ab0ec). Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #283   +/-   ##
=========================================
  Coverage     99.51%   99.51%           
  Complexity      305      305           
=========================================
  Files            19       19           
  Lines           827      827           
=========================================
  Hits            823      823           
  Misses            4        4           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Mar 18 '25 14:03 codecov[bot]