Registers an asset to the current asset manager.
string $name The asset name:
AssetInterface $asset The asset:
\InvalidArgumentException If the asset name is invalid
public function set($name, AssetInterface $asset) {
if (!ctype_alnum(str_replace('_', '', $name))) {
throw new \InvalidArgumentException(sprintf('The name "%s" is invalid.', $name));
}
$this->assets[$name] = $asset;
}