From 8a5453752b5011c654cfaac7fde754446ed43e52 Mon Sep 17 00:00:00 2001 From: Andrei Pisarevskii Date: Fri, 24 May 2024 18:26:07 +0300 Subject: [PATCH 1/2] Fix autoload issue --- composer.json | 6 +++++- src/Container.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 17cdf22..0a0e95f 100644 --- a/composer.json +++ b/composer.json @@ -37,9 +37,13 @@ "phpstan/phpstan-deprecation-rules": "^1.1", "rregeer/phpunit-coverage-check": "^0.3.1" }, + "autoload": { + "psr-4": { + "Renakdup\\SimpleDIC\\": "src/" + } + }, "autoload-dev": { "psr-4": { - "Renakdup\\SimpleDIC\\": "src/", "RenakdupTests\\SimpleDIC\\": "tests/" } }, diff --git a/src/Container.php b/src/Container.php index 28a18a1..c546194 100644 --- a/src/Container.php +++ b/src/Container.php @@ -8,7 +8,7 @@ * Author Email: renakdup@gmail.com * Author Site: https://wp-yoda.com/en/ * - * Version: 1.1.0 + * Version: 1.1.1 * Source Code: https://github.com/renakdup/simple-php-dic * * Licence: MIT License From a0d726fda7dd1364cf05a886fb1e245d33c9e6d3 Mon Sep 17 00:00:00 2001 From: Andrei Pisarevskii Date: Fri, 24 May 2024 18:30:39 +0300 Subject: [PATCH 2/2] Rebranding --- composer.json | 3 ++- src/Container.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 0a0e95f..96df17f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "renakdup/simple-php-dic", + "name": "renakdup/simple-dic", "description": "Simple DI Container with autowiring for your WordPress application with NO dependencies.", "type": "library", "license": "MIT", @@ -7,6 +7,7 @@ "dic", "di container", "simple dic", + "simple php dic", "dic autowiring", "simple php dic", "wordpress dic", diff --git a/src/Container.php b/src/Container.php index c546194..0ba0255 100644 --- a/src/Container.php +++ b/src/Container.php @@ -1,15 +1,15 @@