src/MediaEmbed.php
public function setHosts(array $stubs, $reset = false) {
		if ($reset) {
			$this->_hosts = [];
		}
		foreach ($stubs as $stub) {
			$slug = $this->_slug($stub['name']);
			$this->_hosts[$slug] = $stub;
		}
		return $this;
	}
public function setHosts(array $stubs, $reset = false) {
		if ($reset) {
			$this->_hosts = [];
		}
		foreach ($stubs as $stub) {
			$slug = $this->_slug($stub['name']);
			$this->_hosts[$slug] = $stub;
		}
		return $this;
	}
public function setHosts ( array $ stubs , $ reset = false ) { if ( $ reset ) { $ this -> _hosts = [ ] ; } foreach ( $ stubs as $ stub ) { $ slug = $ this -> _slug ( $ stub [ 'name' ] ) ; $ this -> _hosts [ $ slug ] = $ stub ; } return $ this ; }
Set custom stubs overwriting the default ones.

@param array $stubs Same format as in the stubs.php file.
@param bool $reset If default ones should be resetted/removed.
@return $this
Set custom stubs overwriting the default ones .