remove mkdocs specific syntax

This commit is contained in:
Marcello 2024-06-16 19:14:59 +02:00
parent 8d08c1964f
commit 8026e1465b
Signed by: m-lamonaca
SSH key fingerprint: SHA256:8db8uii6Gweq7TbKixFBioW2T8CbgtyFETyYL3cr3zk
77 changed files with 1128 additions and 1128 deletions

View file

@ -2,7 +2,7 @@
Explicit definition of a class dependencies with the injection through the constructor or *getters*/*setters*.
```php linenums="1"
```php
class Foo
{
public function __construct(PDO $pdo) // depends on PDO
@ -24,7 +24,7 @@ The dependency injection container for humans. Installation: `composer require p
- Use of [Reflection](https://www.php.net/manual/en/intro.reflection.php)
- Configuration of the container through annotations & PHP code.
```php linenums="1"
```php
class Foo
{
private $bar;
@ -42,7 +42,7 @@ $foo = $container->get('Foo'); // get instance of Foo (automatic DI of Bar)
### DIC Configuration
```php linenums="1"
```php
// Foo.php
class Foo
{
@ -53,7 +53,7 @@ class Foo
}
```
```php linenums="1"
```php
// config.php
use Psr\Container\ContainerInterface;
@ -68,7 +68,7 @@ return [
];
```
```php linenums="1"
```php
$builder = new \DI\ContainerBuilder();
$builder->addDefinitions("config.php"); // load config
$container = $builder->build(); // construct container