Skip to content

Commit

Permalink
Release/3.0.0 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford authored Nov 12, 2022
1 parent ad03762 commit faa70cb
Show file tree
Hide file tree
Showing 141 changed files with 8,755 additions and 3,137 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ instance of `Underpin\Factories\Underpin_Instance` is created.
*
* @return \Underpin\Factories\Underpin_Instance The bootstrap for this plugin.
*/
function plugin_name_replace_me() {
return Underpin\Abstracts\Underpin::make_class( [
use Underpin\Helpers\Object_Helper;function plugin_name_replace_me() {
return Object_Helper::make_class( [
'root_namespace' => 'Plugin_Name_Replace_Me',
'text_domain' => 'plugin_name_replace_me',
'version' => '1.0.0',
Expand All @@ -300,7 +300,7 @@ The example above could be converted into a class that looks like this:

```php

class Plugin_Name_Replace_Me extends Underpin\Abstracts\Underpin{
class Plugin_Name_Replace_Me extends \Underpin\Loaders\Underpin{


/**
Expand Down Expand Up @@ -414,8 +414,8 @@ Now, simply call this class using `Underpin::make_class`.
*
* @return \Underpin\Factories\Underpin_Instance The bootstrap for this plugin.
*/
function plugin_name_replace_me() {
return Underpin\Abstracts\Underpin::make_class( [
use Underpin\Helpers\Object_Helper;function plugin_name_replace_me() {
return Object_Helper::make_class( [
'class' => 'Plugin_Name_Replace_Me',
'args' => [
'custom_param' => 'Custom paramater value',
Expand Down
38 changes: 25 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
{
"name": "underpin/underpin",
"description": "Underpin WordPress framework",
"type": "wordpress-muplugin",
"license": "MIT",
"authors": [
{
"name": "Alex Standiford",
"email": "[email protected]"
}
],
"name": "underpin/underpin",
"description": "Underpin framework",
"type": "package",
"license": "MIT",
"authors": [
{
"name": "Alex Standiford",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {"Underpin\\": "lib/"}
"psr-4": {
"Underpin\\": "lib/"
}
},
"require": {
"composer/installers": "^2.1"
"autoload-dev": {
"psr-4": {
"Underpin\\Tests\\": "tests/"
}
},
"require": {
"composer/installers": "^2.1",
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"mockery/mockery": "^1.5"
}
}
Loading

0 comments on commit faa70cb

Please sign in to comment.