protected function installDefaultThemeFromClassProperty(ContainerInterface
$container) { // Use the install profile to determine the default theme if configured and
// not already specified.
$profile =
$container->
getParameter('install_profile'
);
$default_sync_path =
$container->
get('extension.list.profile'
)->
getPath($profile) . '/config/sync';
$profile_config_storage =
new FileStorage($default_sync_path, StorageInterface::DEFAULT_COLLECTION
);
if (!
isset($this->defaultTheme
) &&
$profile_config_storage->
exists('system.theme'
)) { $this->defaultTheme =
$profile_config_storage->
read('system.theme'
)['default'
];
} $default_install_path =
$container->
get('extension.list.profile'
)->
getPath($profile) . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
$profile_config_storage =
new FileStorage($default_install_path, StorageInterface::DEFAULT_COLLECTION
);
if (!
isset($this->defaultTheme
) &&
$profile_config_storage->
exists('system.theme'
)) { $this->defaultTheme =
$profile_config_storage->
read('system.theme'
)['default'
];
}