Review main Merged

23950[FEATURE] Fallback paths (backport from Flow)

Tymoteusz Motylewski CR +2 V +2 Expert +873 −208 updated 08/16/14, 14:45

Commit message

With this change it will be possible to define multiple values
for the 'template', 'partial' and 'layout' root path configuration.
Each of the respective options will now have a corresponding setter
that enables configuration of multiple paths to look up when loading a
Fluid template file:
	$view->setTemplateRootPaths(array('first/path', 'second/path', …));
The old setters will be kept and they overrule the fallback paths. So:
	$view->setTemplateRootPath('some/path');
would disable the fallback paths of the previous example. The same is true
for 'setPartialRootPath()' and 'setLayoutRootPath()'.
The rootPath-getters have been deprecated in favor of
'getTemplateRootPaths()', 'getPartialRootPaths()' and
'getLayoutRootPaths()'.

This is a backport of the Flow feature applied in
Change-Id: I530e9a1fadbbd210c980c62cf2022c38fa81bb56 issue #39870

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3