diff --git a/PHP/PHP Composer & Autoloading.md b/PHP/Composer & Autoloading.md similarity index 100% rename from PHP/PHP Composer & Autoloading.md rename to PHP/Composer & Autoloading.md diff --git a/PHP/PHP DB.md b/PHP/Database.md similarity index 100% rename from PHP/PHP DB.md rename to PHP/Database.md diff --git a/PHP/PHP Dependecy Injection.md b/PHP/Dependecy Injection.md similarity index 93% rename from PHP/PHP Dependecy Injection.md rename to PHP/Dependecy Injection.md index 0f5e702..d168de5 100644 --- a/PHP/PHP Dependecy Injection.md +++ b/PHP/Dependecy Injection.md @@ -1,6 +1,4 @@ -# Dependency Injection (PHP-DI), KISS, SOLID - -## Dependency Injection +# Dependency Injection Explicit definition of a class dependencies with the injection through the constructor or *getters*/*setters*. @@ -14,7 +12,7 @@ class Foo } ``` -### Dependency Injection Container +## Dependency Injection Container The **Dependecy Injection Container** (DIC) allow to archive all the dependencies in a single `Container` class. Some offer automatic resolution of the dependecies. Containers aid the developer in the handling of the dependecies: get/has/set. @@ -43,7 +41,7 @@ $container = new DI\Container(); // DI Container $foo = $container->get('Foo'); // get instance of Foo (automatic DI of Bar) ``` -## DIC Configuration +### DIC Configuration ```php // Foo.php diff --git a/PHP/PHP PSR-7.md b/PHP/PSR-7.md similarity index 100% rename from PHP/PHP PSR-7.md rename to PHP/PSR-7.md diff --git a/PHP/PHP Templates with Plates.md b/PHP/Templates with Plates.md similarity index 100% rename from PHP/PHP Templates with Plates.md rename to PHP/Templates with Plates.md diff --git a/PHP/PHP Unit Testing.md b/PHP/Unit Testing.md similarity index 100% rename from PHP/PHP Unit Testing.md rename to PHP/Unit Testing.md diff --git a/PHP/PHP Web.md b/PHP/Web.md similarity index 100% rename from PHP/PHP Web.md rename to PHP/Web.md