File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/Css/PreProcessor/Instruction Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class MagentoImport implements PreProcessorInterface
3131 /**
3232 * PCRE pattern that matches @magento_import instruction
3333 */
34- const REPLACE_PATTERN =
34+ public const REPLACE_PATTERN =
3535 '#//@magento_import(?P<reference>\s+\(reference\))?\s+[ \'\"](?P<path>(?![/ \\\]|\w:[/ \\\])[^\" \']+)[ \'\"]\s*?;# ' ;
3636
3737 private const CONFIG_PATH_SCD_ONLY_ENABLED_MODULES = 'static_content_only_enabled_modules ' ;
@@ -135,7 +135,7 @@ protected function replace(array $matchedContent, LocalInterface $asset)
135135 $ relatedAsset = $ this ->assetRepo ->createRelated ($ matchedFileId , $ asset );
136136 $ resolvedPath = $ relatedAsset ->getFilePath ();
137137 $ importFiles = $ this ->fileSource ->getFiles ($ this ->getTheme ($ relatedAsset ), $ resolvedPath );
138- $ deployOnlyEnabled = $ this ->getStaticDeployEnabledModulesFlag ();
138+ $ deployOnlyEnabled = $ this ->hasEnabledFlagDeployEnabledModules ();
139139 /** @var $importFile \Magento\Framework\View\File */
140140 foreach ($ importFiles as $ importFile ) {
141141 $ moduleName = $ importFile ->getModule ();
@@ -172,7 +172,7 @@ protected function replace(array $matchedContent, LocalInterface $asset)
172172 *
173173 * @return bool
174174 */
175- protected function getStaticDeployEnabledModulesFlag () : bool
175+ protected function hasEnabledFlagDeployEnabledModules () : bool
176176 {
177177 return (bool ) $ this ->deploymentConfig ->get (self ::CONFIG_PATH_SCD_ONLY_ENABLED_MODULES );
178178 }
You can’t perform that action at this time.
0 commit comments