-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from neos/task/standalone-package
TASK: Standalone rector package
- Loading branch information
Showing
81 changed files
with
4,705 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
export FUSION_PARSER_TARGETPATH=src/Core/FusionProcessing/FusionParser | ||
export FUSION_TARGETPATH=src/Core/FusionProcessing/Fusion | ||
export AFX_PARSER_TARGETPATH=src/Core/FusionProcessing/AfxParser | ||
|
||
rm -Rf $FUSION_PARSER_TARGETPATH | ||
cp -R ../../../Neos/Neos.Fusion/Classes/Core/ObjectTreeParser $FUSION_PARSER_TARGETPATH | ||
grep -rl 'Neos\\Fusion\\Core\\ObjectTreeParser' $FUSION_PARSER_TARGETPATH | xargs sed -i '' 's/Neos\\Fusion\\Core\\ObjectTreeParser/Neos\\Rector\\Core\\FusionProcessing\\FusionParser/g' | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
SEDOPTION="-i ''" | ||
else | ||
SEDOPTION="-i " | ||
fi | ||
|
||
# To create the patch file for Neos.Fusion.Afx, do: | ||
# cd Packages/Neos | ||
# patch -p1 < ../Libraries/neos/rector/scripts/fusion-object-parser.patch | ||
## Now, do your modifications as needed. | ||
# git diff -- Neos.Fusion/ > ../../rector/scripts/fusion-object-parser.patch | ||
# git restore -- Neos.Fusion/ | ||
|
||
rm -Rf $FUSION_TARGETPATH | ||
cp -R ../Packages/Neos/Neos.Fusion/Classes/Core $FUSION_TARGETPATH | ||
pushd $FUSION_TARGETPATH | ||
patch -p4 < ../../../../scripts/fusion-object-parser.patch | ||
popd | ||
grep -rl 'Neos\\Fusion\\Core' $FUSION_TARGETPATH | xargs sed $SEDOPTION 's/Neos\\Fusion\\Core/Neos\\Rector\\Core\\FusionProcessing\\Fusion/g' | ||
grep -rl 'Fusion\\Core' $FUSION_TARGETPATH | xargs sed $SEDOPTION 's/Fusion\\Core/\\Neos\\Rector\\Core\\FusionProcessing\\Fusion/g' | ||
|
||
# To create the patch file for Neos.Fusion.Afx, do: | ||
# cd Packages/Neos | ||
# patch -p1 < ../Libraries/neos/rector/scripts/afx-eel-positions.patch | ||
## Now, do your modifications as needed. | ||
# git diff -- Neos.Fusion.Afx/ > ../Libraries/neos/rector/scripts/afx-eel-positions.patch | ||
# git diff -- Neos.Fusion.Afx/ > ../../rector/scripts/afx-eel-positions.patch | ||
# git restore -- Neos.Fusion.Afx/ | ||
|
||
rm -Rf $AFX_PARSER_TARGETPATH | ||
cp -R ../../../Neos/Neos.Fusion.Afx/Classes/Parser $AFX_PARSER_TARGETPATH | ||
cp -R ../Packages/Neos/Neos.Fusion.Afx/Classes/Parser $AFX_PARSER_TARGETPATH | ||
pushd $AFX_PARSER_TARGETPATH | ||
patch -p4 < ../../../../scripts/afx-eel-positions.patch | ||
popd | ||
grep -rl 'Neos\\Fusion\\Afx\\Parser' $AFX_PARSER_TARGETPATH | xargs sed -i '' 's/Neos\\Fusion\\Afx\\Parser/Neos\\Rector\\Core\\FusionProcessing\\AfxParser/g' | ||
grep -rl 'Neos\\Fusion\\Afx\\Parser' $AFX_PARSER_TARGETPATH | xargs sed $SEDOPTION 's/Neos\\Fusion\\Afx\\Parser/Neos\\Rector\\Core\\FusionProcessing\\AfxParser/g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Neos.Fusion/Classes/Core/ObjectTreeParser/ObjectTreeParser.php b/Neos.Fusion/Classes/Core/ObjectTreeParser/ObjectTreeParser.php | ||
index 06a31eb69c..eca9848de7 100644 | ||
--- a/Neos.Fusion/Classes/Core/ObjectTreeParser/ObjectTreeParser.php | ||
+++ b/Neos.Fusion/Classes/Core/ObjectTreeParser/ObjectTreeParser.php | ||
@@ -55,7 +55,7 @@ class ObjectTreeParser | ||
|
||
protected ?string $contextPathAndFilename; | ||
|
||
- private function __construct(Lexer $lexer, ?string $contextPathAndFilename) | ||
+ public function __construct(Lexer $lexer, ?string $contextPathAndFilename) | ||
{ | ||
$this->lexer = $lexer; | ||
$this->contextPathAndFilename = $contextPathAndFilename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.