diff --git a/Classes/Psmb/Newsletter/TypoScript/CssToInlineImplementation.php b/Classes/Psmb/Newsletter/Fusion/CssToInlineImplementation.php similarity index 79% rename from Classes/Psmb/Newsletter/TypoScript/CssToInlineImplementation.php rename to Classes/Psmb/Newsletter/Fusion/CssToInlineImplementation.php index 2dc87d3..285cd7f 100644 --- a/Classes/Psmb/Newsletter/TypoScript/CssToInlineImplementation.php +++ b/Classes/Psmb/Newsletter/Fusion/CssToInlineImplementation.php @@ -1,12 +1,12 @@ tsValue('value'); - $cssFile = $this->tsValue('cssPath'); + $html = $this->fusionValue('value'); + $cssFile = $this->fusionValue('cssPath'); $css = file_get_contents($cssFile); $cssToInlineStyles = new CssToInlineStyles(); return $cssToInlineStyles->convert( diff --git a/Resources/Private/Fusion/Root.fusion b/Resources/Private/Fusion/Root.fusion index 4d5ec88..192b770 100644 --- a/Resources/Private/Fusion/Root.fusion +++ b/Resources/Private/Fusion/Root.fusion @@ -15,7 +15,7 @@ prototype(Neos.Fusion:GlobalCacheIdentifiers) { # `cssPath` should contain a path to a CSS file, e.g. `cssPath = 'resource://Psmb.Newsletter/Public/styles.css'` # prototype(Psmb.Newsletter:CssToInline) { - @class = 'Psmb\\Newsletter\\TypoScript\\CssToInlineImplementation' + @class = 'Psmb\\Newsletter\\Fusion\\CssToInlineImplementation' value = ${value} cssPath = 'to-be-set' }