mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-31 10:31:07 +03:00 
			
		
		
		
	Rename "AssetManager::add*Asset" methods to "attach*"
This commit is contained in:
		
							parent
							
								
									2ed44e874c
								
							
						
					
					
						commit
						7ce4d812bd
					
				| @ -93,7 +93,7 @@ class AssetManager implements AssetManagerInterface | ||||
|     /** | ||||
|      * {@inheritdoc} | ||||
|      */ | ||||
|     public function addJsAsset($content, $type = AssetManagerInterface::RELATIVE_URL) | ||||
|     public function attachJs($content, $type = AssetManagerInterface::RELATIVE_URL) | ||||
|     { | ||||
|         $this->jsAssets[] = array( | ||||
|             'content' => $content, | ||||
| @ -115,7 +115,7 @@ class AssetManager implements AssetManagerInterface | ||||
|     /** | ||||
|      * {@inheritdoc} | ||||
|      */ | ||||
|     public function addCssAsset($content, $type = AssetManagerInterface::RELATIVE_URL) | ||||
|     public function attachCss($content, $type = AssetManagerInterface::RELATIVE_URL) | ||||
|     { | ||||
|         $this->cssAssets[] = array( | ||||
|             'content' => $content, | ||||
|  | ||||
| @ -63,7 +63,7 @@ interface AssetManagerInterface | ||||
|      *   AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE | ||||
|      *   constants. | ||||
|      */ | ||||
|     public function addJsAsset($content, $type = self::ABSOLUTE_URL); | ||||
|     public function attachJs($content, $type = self::ABSOLUTE_URL); | ||||
| 
 | ||||
|     /** | ||||
|      * Retrieves all attached and provided by plugins JavaScript assets. | ||||
| @ -89,7 +89,7 @@ interface AssetManagerInterface | ||||
|      *   AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE | ||||
|      *   constants. | ||||
|      */ | ||||
|     public function addCssAsset($content, $type = self::ABSOLUTE_URL); | ||||
|     public function attachCss($content, $type = self::ABSOLUTE_URL); | ||||
| 
 | ||||
|     /** | ||||
|      * Retrieves all attached and provided by plugins CSS assets. | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user