@@ -82,22 +82,22 @@ public function loadFileFromDocumentation(BlockContext $blockContext, Directive
82
82
$ pathPrefix = (string )$ adapter ->getPathPrefix ();
83
83
84
84
// The path delivered via the directive like:
85
- // .. typo3:site-set-settings:: EXT:self /Configuration/Sets/FluidStyledContent/settings.definitions.yaml
85
+ // .. typo3:site-set-settings:: PROJECT: /Configuration/Sets/FluidStyledContent/settings.definitions.yaml
86
86
$ setConfigurationFile = $ directive ->getData ();
87
87
88
88
// By default, the RST files are placed inside a "Documentation" subdirectory.
89
89
// When using the docker container, this origin root path is then set to "/project/Documentation".
90
90
// No files on the "/project/" directory level can usually be accessed, even though they may belong
91
91
// to TYPO3 core/third-party extensions that the Documentation belongs to directory-wise.
92
92
// To allow files to be retrieved on the EXTENSION-level, instead of DOCUMENTATION-level,
93
- // a special string "EXT:self " is evaluated here.
93
+ // a special string "PROJECT: " is evaluated here.
94
94
// If a path starts with that notation, it will be referenced from the "/project/..." directory level.
95
95
// It will not break out of the "/project/" mapping!
96
- if (str_starts_with ($ setConfigurationFile , 'EXT:self ' )) {
97
- // This will replace "EXT:self /Configuration/Sets/File.yaml" with "/Configuration/Sets/File.yaml"
96
+ if (str_starts_with ($ setConfigurationFile , 'PROJECT: ' )) {
97
+ // This will replace "PROJECT: /Configuration/Sets/File.yaml" with "/Configuration/Sets/File.yaml"
98
98
// and is then passed to absoluteRelativePath() which will set $path = "/Configuration/Sets/File.yaml",
99
99
// but ensure no "../../../" or other path traversal is allowed.
100
- $ path = $ parserContext ->absoluteRelativePath (str_replace ('EXT:self ' , '' , $ setConfigurationFile ));
100
+ $ path = $ parserContext ->absoluteRelativePath (str_replace ('PROJECT: ' , '' , $ setConfigurationFile ));
101
101
102
102
// Get the current origin Path, usually "/project/Documentation/", and go one level up.
103
103
$ newOriginPath = dirname ($ pathPrefix ) . '/ ' ;
0 commit comments