Skip to content

Commit

Permalink
Merge pull request #13 from sarahcssiqueira/develop
Browse files Browse the repository at this point in the history
Adds Composer's autoload
  • Loading branch information
sarahcssiqueira authored Jun 7, 2024
2 parents 2a13367 + 54d446b commit 756b287
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"autoload": {
"psr-4": {
"WXYZBlocks\\Inc\\": "./inc"
"WXYZBlocks\\Inc\\": "inc/"
}
},
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion inc/class-init.php → inc/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function __construct() {
add_filter( 'block_categories_all', [ $this, 'register_new_category' ] );
}


/*
Register custom category
*/
Expand Down
6 changes: 1 addition & 5 deletions wxyz-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

defined( 'ABSPATH' ) || exit;

require_once __DIR__ . '/inc/class-block-x.php';
require_once __DIR__ . '/inc/class-block-y.php';
require_once __DIR__ . '/inc/class-block-w.php';
require_once __DIR__ . '/inc/class-block-z.php';
require_once __DIR__ . '/inc/class-init.php';
require __DIR__ . '/vendor/autoload.php';

use WXYZBlocks\Inc\BlockX;
use WXYZBlocks\Inc\BlockY;
Expand Down

0 comments on commit 756b287

Please sign in to comment.