Skip to content

Commit

Permalink
Merge commit '53caf23'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Nov 23, 2021
2 parents 0321d2b + 53caf23 commit 605162a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
15 changes: 15 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

use Underpin\Abstracts\Underpin;

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

// Add this loader.
Underpin::attach( 'setup', new \Underpin\Factories\Observers\Loader( 'roles', [
'name' => 'Roles',
'description' => 'Handles setting custom roles in WordPress',
'instance' => 'Underpin\Roles\Abstracts\Role',
'default' => 'Underpin\Roles\Factories\Role_Instance',
] ) );
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
"email": "a@alexstandiford.com"
}
],
"require": {
"underpin/underpin": "^2.0"
},
"autoload": {
"psr-4": {"Underpin\\Roles\\": "lib/"},
"files": [
"roles.php"
"bootstrap.php"
]
}
}
2 changes: 1 addition & 1 deletion Role.php → lib/Abstracts/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @package Underpin\Abstracts
*/

namespace Underpin_Roles\Abstracts;
namespace Underpin\Roles\Abstracts;

use Underpin\Traits\Feature_Extension;

Expand Down
4 changes: 2 additions & 2 deletions Role_Instance.php → lib/Factories/Role_Instance.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Underpin_Roles\Factories;
namespace Underpin\Roles\Factories;


use Underpin\Traits\Instance_Setter;
use Underpin_Roles\Abstracts\Role;
use Underpin\Roles\Abstracts\Role;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
14 changes: 0 additions & 14 deletions roles.php

This file was deleted.

0 comments on commit 605162a

Please sign in to comment.