Skip to content

Commit

Permalink
PSR4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Nov 23, 2021
1 parent ff23c6d commit d1ca1bf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 23 deletions.
12 changes: 12 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

use Underpin\Abstracts\Underpin;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

// Add this loader.
Underpin::attach( 'setup', new \Underpin\Factories\Observers\Loader( 'widgets', [
'class' => 'Underpin\Widgets\Loaders\Widgets',
] ) );
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"underpin/underpin": "^2.0"
},
"autoload": {
"psr-4": {"Underpin\\Commands\\": "lib/"},
"files": [
"index.php"
"bootstrap.php"
]
}
}
22 changes: 0 additions & 22 deletions index.php

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d1ca1bf

Please sign in to comment.