public function fetch(array $params = [], AssetManagerInterface $assetManager = null)
    {
        $asset = $this->asset;

        $this->set($params);

        return $this->validate($asset($this, $assetManager));
    }
public function fetch(array $params = [], AssetManagerInterface $assetManager = null)
    {
        $asset = $this->asset;

        $this->set($params);

        return $this->validate($asset($this, $assetManager));
    }
public function fetch ( array $ params = [ ] , AssetManagerInterface $ assetManager = null ) { $ asset = $ this -> asset ; $ this -> set ( $ params ) ; return $ this -> validate ( $ asset ( $ this , $ assetManager ) ) ; }
Validate and retrieve an instantiated asset.

Here the closure is passed this asset container and optionally a
Proem\Service\AssetManagerInterface implementation.

This provides the closure with the ability to use any required parameters
and also be able to call upon any other assets stored in the service manager.

@param array $params Allow last minute setting of parameters.
@param Proem\Service\AssetManagerInterface $assetManager
Validate and retrieve an instantiated asset .