mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-12 10:31:09 +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}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function addJsAsset($content, $type = AssetManagerInterface::RELATIVE_URL)
|
public function attachJs($content, $type = AssetManagerInterface::RELATIVE_URL)
|
||||||
{
|
{
|
||||||
$this->jsAssets[] = array(
|
$this->jsAssets[] = array(
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
@ -115,7 +115,7 @@ class AssetManager implements AssetManagerInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function addCssAsset($content, $type = AssetManagerInterface::RELATIVE_URL)
|
public function attachCss($content, $type = AssetManagerInterface::RELATIVE_URL)
|
||||||
{
|
{
|
||||||
$this->cssAssets[] = array(
|
$this->cssAssets[] = array(
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
|
@ -63,7 +63,7 @@ interface AssetManagerInterface
|
|||||||
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
||||||
* constants.
|
* 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.
|
* Retrieves all attached and provided by plugins JavaScript assets.
|
||||||
@ -89,7 +89,7 @@ interface AssetManagerInterface
|
|||||||
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
||||||
* constants.
|
* 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.
|
* Retrieves all attached and provided by plugins CSS assets.
|
||||||
|
Loading…
Reference in New Issue
Block a user