Skip to content

Commit

Permalink
Corrects composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Nov 23, 2021
1 parent d0cf4f9 commit 4154fc3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 27 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( 'options', [
'class' => 'Underpin\Options\Loaders\Options',
] ) );
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\\Options\\": "lib/"},
"files": [
"options.php"
"bootstrap.php"
]
}
}
2 changes: 1 addition & 1 deletion lib/abstracts/Option.php → lib/Abstracts/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/


namespace Underpin_Options\Abstracts;
namespace Underpin\Options\Abstracts;

use Underpin\Traits\Feature_Extension;
use WP_Error;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Underpin_Options\Factories;
namespace Underpin\Options\Factories;


use Underpin\Traits\Instance_Setter;
use Underpin_Options\Abstracts\Option;
use Underpin\Options\Abstracts\Option;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
8 changes: 4 additions & 4 deletions lib/loaders/Options.php → lib/Loaders/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/


namespace Underpin_Options\Loaders;
namespace Underpin\Options\Loaders;

use Underpin\Abstracts\Registries\Object_Registry;
use Underpin_Options\Abstracts\Option;
use Underpin\Options\Abstracts\Option;
use WP_Error;

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -29,9 +29,9 @@ class Options extends Object_Registry {
/**
* @inheritDoc
*/
protected $abstraction_class = 'Underpin_Options\Abstracts\Option';
protected $abstraction_class = 'Underpin\Options\Abstracts\Option';

protected $default_factory = 'Underpin_Options\Factories\Option_Instance';
protected $default_factory = 'Underpin\Options\Factories\Option_Instance';

/**
* @inheritDoc
Expand Down
19 changes: 0 additions & 19 deletions options.php

This file was deleted.

0 comments on commit 4154fc3

Please sign in to comment.