diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/instantiator/README.md | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/instantiator/README.md')
-rw-r--r-- | vendor/doctrine/instantiator/README.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/doctrine/instantiator/README.md b/vendor/doctrine/instantiator/README.md new file mode 100644 index 0000000..1fa9567 --- /dev/null +++ b/vendor/doctrine/instantiator/README.md | |||
@@ -0,0 +1,38 @@ | |||
1 | # Instantiator | ||
2 | |||
3 | This library provides a way of avoiding usage of constructors when instantiating PHP classes. | ||
4 | |||
5 | [](https://travis-ci.org/doctrine/instantiator) | ||
6 | [](https://codecov.io/gh/doctrine/instantiator/branch/master) | ||
7 | [](https://www.versioneye.com/package/php--doctrine--instantiator) | ||
8 | |||
9 | [](https://packagist.org/packages/doctrine/instantiator) | ||
10 | [](https://packagist.org/packages/doctrine/instantiator) | ||
11 | |||
12 | ## Installation | ||
13 | |||
14 | The suggested installation method is via [composer](https://getcomposer.org/): | ||
15 | |||
16 | ```sh | ||
17 | composer require doctrine/instantiator | ||
18 | ``` | ||
19 | |||
20 | ## Usage | ||
21 | |||
22 | The instantiator is able to create new instances of any class without using the constructor or any API of the class | ||
23 | itself: | ||
24 | |||
25 | ```php | ||
26 | $instantiator = new \Doctrine\Instantiator\Instantiator(); | ||
27 | |||
28 | $instance = $instantiator->instantiate(\My\ClassName\Here::class); | ||
29 | ``` | ||
30 | |||
31 | ## Contributing | ||
32 | |||
33 | Please read the [CONTRIBUTING.md](CONTRIBUTING.md) contents if you wish to help out! | ||
34 | |||
35 | ## Credits | ||
36 | |||
37 | This library was migrated from [ocramius/instantiator](https://github.com/Ocramius/Instantiator), which | ||
38 | has been donated to the doctrine organization, and which is now deprecated in favour of this package. | ||