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 committed 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
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
@@ -1,18 +1,30 @@
{
"name": "underpin/underpin",
"description": "Underpin WordPress framework",
"type": "wordpress-muplugin",
"license": "MIT",
"authors": [
{
"name": "Alex Standiford",
"email": "a@alexstandiford.com"
}
],
"name": "underpin/underpin",
"description": "Underpin framework",
"type": "package",
"license": "MIT",
"authors": [
{
"name": "Alex Standiford",
"email": "a@alexstandiford.com"
}
],
"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"
}
}

0 comments on commit faa70cb

Please sign in to comment.