From 7ce4d812bd23b86ec2a3b6c49232e8f4234af927 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 9 Oct 2014 14:20:40 +0000 Subject: [PATCH] Rename "AssetManager::add*Asset" methods to "attach*" --- src/mibew/libs/classes/Mibew/Asset/AssetManager.php | 4 ++-- src/mibew/libs/classes/Mibew/Asset/AssetManagerInterface.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mibew/libs/classes/Mibew/Asset/AssetManager.php b/src/mibew/libs/classes/Mibew/Asset/AssetManager.php index 7935f609..29c3c8b0 100644 --- a/src/mibew/libs/classes/Mibew/Asset/AssetManager.php +++ b/src/mibew/libs/classes/Mibew/Asset/AssetManager.php @@ -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, diff --git a/src/mibew/libs/classes/Mibew/Asset/AssetManagerInterface.php b/src/mibew/libs/classes/Mibew/Asset/AssetManagerInterface.php index 62a4fa80..1d3c4f92 100644 --- a/src/mibew/libs/classes/Mibew/Asset/AssetManagerInterface.php +++ b/src/mibew/libs/classes/Mibew/Asset/AssetManagerInterface.php @@ -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.