Blame | Letzte Änderung | Log anzeigen | RSS feed
Introduction============This library provides a way of avoiding usage of constructors when instantiating PHP classes.Installation============The suggested installation method is via `composer`_:.. code-block:: console$ composer require doctrine/instantiatorUsage=====The instantiator is able to create new instances of any class withoutusing the constructor or any API of the class itself:.. code-block:: php<?phpuse Doctrine\Instantiator\Instantiator;use App\Entities\User;$instantiator = new Instantiator();$user = $instantiator->instantiate(User::class);Contributing============- Follow the `Doctrine Coding Standard`_- The project will follow strict `object calisthenics`_- Any contribution must provide tests for additional introducedconditions- Any un-confirmed issue needs a failing test case before beingaccepted- Pull requests must be sent from a new hotfix/feature branch, not from``master``.Testing=======The PHPUnit version to be used is the one installed as a dev- dependencyvia composer:.. code-block:: console$ ./vendor/bin/phpunitAccepted coverage for new contributions is 80%. Any contribution notsatisfying this requirement won’t be merged.Credits=======This library was migrated from `ocramius/instantiator`_, which has beendonated to the doctrine organization, and which is now deprecated infavour of this package... _composer: https://getcomposer.org/.. _CONTRIBUTING.md: CONTRIBUTING.md.. _ocramius/instantiator: https://github.com/Ocramius/Instantiator.. _Doctrine Coding Standard: https://github.com/doctrine/coding-standard.. _object calisthenics: http://www.slideshare.net/guilhermeblanco/object-calisthenics-applied-to-php