mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Use relative URL for assets as default
This commit is contained in:
parent
922edc96d7
commit
46ee9df63a
@ -248,7 +248,7 @@ class AssetManager implements AssetManagerInterface
|
|||||||
if (is_string($asset)) {
|
if (is_string($asset)) {
|
||||||
$normalized_assets[] = array(
|
$normalized_assets[] = array(
|
||||||
'content' => $asset,
|
'content' => $asset,
|
||||||
'type' => AssetManagerInterface::ABSOLUTE_URL,
|
'type' => AssetManagerInterface::RELATIVE_URL,
|
||||||
);
|
);
|
||||||
} elseif (is_array($asset) && !empty($asset['type']) && !empty($asset['content'])) {
|
} elseif (is_array($asset) && !empty($asset['type']) && !empty($asset['content'])) {
|
||||||
$normalized_assets[] = $asset;
|
$normalized_assets[] = $asset;
|
||||||
|
@ -63,7 +63,7 @@ interface AssetManagerInterface
|
|||||||
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
* AssetManagerInterface::RELATIVE_URL or AssetManagerInterface::INLINE
|
||||||
* constants.
|
* constants.
|
||||||
*/
|
*/
|
||||||
public function attachJs($content, $type = self::ABSOLUTE_URL);
|
public function attachJs($content, $type = self::RELATIVE_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 attachCss($content, $type = self::ABSOLUTE_URL);
|
public function attachCss($content, $type = self::RELATIVE_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