42 private $themeProvider;
61 $this->viewConfig = $viewConfig;
62 $this->themeProvider = $themeProvider;
74 $size = $this->getConfig($area,
$theme)->getVarValue(
75 self::VIEW_CONFIG_MODULE,
76 self::VIEW_CONFIG_BUNDLE_SIZE_NAME
78 $unit = preg_replace(
'/[^a-zA-Z]+/',
'', $size);
79 $unit = strtoupper($unit);
84 return (
int)$size * 1024;
86 return (
int)($size / 1024);
99 return $this->getConfig($area,
$theme)->getExcludedDir();
111 return $this->getConfig($area,
$theme)->getExcludedFiles();
121 private function getConfig($area,
$theme)
123 $themePath = $area .
'/' .
$theme;
124 if (!isset($this->config[$themePath])) {
125 $this->config[$themePath] = $this->viewConfig->getViewConfig([
127 'themeModel' => $this->themeProvider->getThemeByFullPath($themePath)
130 return $this->config[$themePath];
__construct(View\ConfigInterface $viewConfig, ThemeProviderInterface $themeProvider)
getExcludedFiles($area, $theme)
const VIEW_CONFIG_BUNDLE_SIZE_NAME
getBundleFileMaxSize($area, $theme)
getExcludedDirectories($area, $theme)