Gets an asset by name.
string $name The asset name:
AssetInterface The asset
\InvalidArgumentException If there is no asset by that name
public function get($name) {
if (!isset($this->assets[$name])) {
throw new \InvalidArgumentException(sprintf('There is no "%s" asset.', $name));
}
return $this->assets[$name];
}