Private/Polyfony/Response/HTML.php
public static function setScripts(array $scripts, bool $replace_existing=false) :void {
		// if we want to purge existing scripts
		!$replace_existing ?: self::$_scripts = [];
		// for each script we have to set
		foreach($scripts as $script) {
			// rewrite its path
			self::$_scripts[] = self::getPublicAssetPath($script, 'Js');
		}
	}
public static function setScripts(array $scripts, bool $replace_existing=false) :void {
		// if we want to purge existing scripts
		!$replace_existing ?: self::$_scripts = [];
		// for each script we have to set
		foreach($scripts as $script) {
			// rewrite its path
			self::$_scripts[] = self::getPublicAssetPath($script, 'Js');
		}
	}
public static function setScripts ( array $ scripts , bool $ replace_existing = false ) : void { // if we want to purge existing scripts ! $ replace_existing ? : self :: $ _scripts = [ ] ; // for each script we have to set foreach ( $ scripts as $ script ) { // rewrite its path self :: $ _scripts [ ] = self :: getPublicAssetPath ( $ script , 'Js' ) ; } }
set scripts for the current HTML page
set scripts for the current HTML page