Rename "AssetManager::add*Asset" methods to "attach*"

This commit is contained in:
Dmitriy Simushev 2014-10-09 14:20:40 +00:00
parent 2ed44e874c
commit 7ce4d812bd
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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.