Gets an asset by name.
string $name The asset name:
AssetInterface The asset
\InvalidArgumentException If there is no asset by that name
Overrides AssetManager::get
public function get($name) {
if (!$this->loaded) {
$this
->load();
}
if (!parent::has($name) && isset($this->formulae[$name])) {
list($inputs, $filters, $options) = $this->formulae[$name];
$options['name'] = $name;
parent::set($name, $this->factory
->createAsset($inputs, $filters, $options));
}
return parent::get($name);
}