21 class Config implements Bundle\ConfigInterface
41 private $themeProvider;
76 if (!isset($this->config[$themePath])) {
77 $this->config[$themePath] = $this->viewConfig->getViewConfig([
79 'themeModel' => $this->getThemeProvider()->getThemeByFullPath(
85 return $this->config[$themePath];
94 $size = $this->
getConfig($assetContext)->getVarValue(
95 self::VIEW_CONFIG_MODULE,
96 self::VIEW_CONFIG_BUNDLE_SIZE_NAME
98 $unit = preg_replace(
'/[^a-zA-Z]+/',
'', $size);
99 $unit = strtoupper($unit);
104 return (
int)$size * 1024;
106 return (
int)($size / 1024);
113 private function getThemeProvider()
115 if (
null === $this->themeProvider) {
119 return $this->themeProvider;
__construct(View\ConfigInterface $viewConfig, ListInterface $themeList)
const VIEW_CONFIG_BUNDLE_SIZE_NAME
isSplit(FallbackContext $assetContext)
getPartSize(FallbackContext $assetContext)
getConfig(FallbackContext $assetContext)