$received_hash =
$file_parts[1
];
// Now build the asset groups based on the libraries. It requires the full
// set of asset groups to extract and build the aggregate for the group we
// want, since libraries may be split across different asset groups.
$theme =
$request->query->
get('theme'
);
$active_theme =
$this->themeInitialization->
initTheme($theme);
$this->themeManager->
setActiveTheme($active_theme);
$attached_assets =
new AttachedAssets();
$include_string = UrlHelper::
uncompressQueryParameter($request->query->
get('include'
));
if (!
$include_string) { throw new BadRequestHttpException('The libraries to include are encoded incorrectly.'
);
} $attached_assets->
setLibraries(explode(',',
$include_string));
if ($request->query->
has('exclude'
)) { $exclude_string = UrlHelper::
uncompressQueryParameter($request->query->
get('exclude'
));
if (!
$exclude_string) { throw new BadRequestHttpException('The libraries to exclude are encoded incorrectly.'
);
}