Skip to content

Commit

Permalink
fix: Changed asset loader package
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Jul 18, 2023
1 parent 2f11126 commit ef18714
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 107 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
}
},
"require": {
"oblak/asset-loader": "^1",
"oblak/serbian-validators": "^1.0",
"oblak/wp-plugin-installer": "^1"
"oblak/wp-plugin-installer": "^1",
"oblak/wp-asset-loader": "^2.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
Expand Down
175 changes: 72 additions & 103 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Core/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Oblak\WCRS\Core;

use Oblak\Asset\Loader;
use Oblak\WP\Asset_Loader;

/**
* Handles asset management
Expand All @@ -26,6 +26,6 @@ public function __construct() {
* Initializes asset loader
*/
public function initialize_loader() {
Loader::getInstance()->registerNamespace( 'wcrs', require_once WCRS_PLUGIN_PATH . 'config/assets.php' );
Asset_Loader::get_instance()->register_namespace( 'wcrs', require_once WCRS_PLUGIN_PATH . 'config/assets.php' );
}
}

0 comments on commit ef18714

Please sign in to comment.