parent
bef52f3f2e
commit
a33317aeab
|
@ -565,11 +565,6 @@ class Module
|
||||||
*/
|
*/
|
||||||
protected function requireCssFile($path, $from)
|
protected function requireCssFile($path, $from)
|
||||||
{
|
{
|
||||||
Logger::warning(
|
|
||||||
'Module assets are deprecated since v2.9. Please check if the module "%s" provides a library instead.',
|
|
||||||
$from
|
|
||||||
);
|
|
||||||
|
|
||||||
$module = self::get($from);
|
$module = self::get($from);
|
||||||
$cssAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'css']);
|
$cssAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'css']);
|
||||||
foreach ($module->getCssAssets() as $assetPath) {
|
foreach ($module->getCssAssets() as $assetPath) {
|
||||||
|
@ -649,11 +644,6 @@ class Module
|
||||||
*/
|
*/
|
||||||
protected function requireJsFile($path, $from)
|
protected function requireJsFile($path, $from)
|
||||||
{
|
{
|
||||||
Logger::warning(
|
|
||||||
'Module assets are deprecated since v2.9. Please check if the module "%s" provides a library instead.',
|
|
||||||
$from
|
|
||||||
);
|
|
||||||
|
|
||||||
$module = self::get($from);
|
$module = self::get($from);
|
||||||
$jsAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'js']);
|
$jsAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'js']);
|
||||||
foreach ($module->getJsAssets() as $assetPath) {
|
foreach ($module->getJsAssets() as $assetPath) {
|
||||||
|
@ -1398,11 +1388,6 @@ class Module
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::warning(
|
|
||||||
'Module assets are deprecated since v2.9. Please provide a library'
|
|
||||||
. ' for the parts you want to make available to other modules.'
|
|
||||||
);
|
|
||||||
|
|
||||||
$listAssets = function ($type) {
|
$listAssets = function ($type) {
|
||||||
$dir = join(DIRECTORY_SEPARATOR, [$this->assetDir, $type]);
|
$dir = join(DIRECTORY_SEPARATOR, [$this->assetDir, $type]);
|
||||||
if (! is_dir($dir)) {
|
if (! is_dir($dir)) {
|
||||||
|
|
Loading…
Reference in New Issue