From 68723844c38773d37ea119b267537fbe6e69f577 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Wed, 23 Jun 2021 17:36:12 +0200 Subject: [PATCH] Rename PHP notes --- ...omposer & Autoloading.md => Composer & Autoloading.md} | 0 PHP/{PHP DB.md => Database.md} | 0 ...{PHP Dependecy Injection.md => Dependecy Injection.md} | 8 +++----- PHP/{PHP PSR-7.md => PSR-7.md} | 0 ... Templates with Plates.md => Templates with Plates.md} | 0 PHP/{PHP Unit Testing.md => Unit Testing.md} | 0 PHP/{PHP Web.md => Web.md} | 0 7 files changed, 3 insertions(+), 5 deletions(-) rename PHP/{PHP Composer & Autoloading.md => Composer & Autoloading.md} (100%) rename PHP/{PHP DB.md => Database.md} (100%) rename PHP/{PHP Dependecy Injection.md => Dependecy Injection.md} (93%) rename PHP/{PHP PSR-7.md => PSR-7.md} (100%) rename PHP/{PHP Templates with Plates.md => Templates with Plates.md} (100%) rename PHP/{PHP Unit Testing.md => Unit Testing.md} (100%) rename PHP/{PHP Web.md => Web.md} (100%) 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