可用于在不调用类构造函数或类自身 API 的情况下创建 PHP 类的新实例,提供了一种避免使用构造函数实例化 PHP 类的方法。【此简介由AI生成】
文件 最后提交记录 最后更新时间 Bump the doctrine group with 5 updates Bumps the doctrine group with 5 updates: | Package | From | To | | --- | --- | --- | | [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github) | `15.0.0` | `15.1.0` | | [doctrine/.github/.github/workflows/continuous-integration.yml](https://github.com/doctrine/.github) | `15.0.0` | `15.1.0` | | [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github) | `15.0.0` | `15.1.0` | | [doctrine/.github/.github/workflows/phpstan.yml](https://github.com/doctrine/.github) | `15.0.0` | `15.1.0` | | [doctrine/.github/.github/workflows/website-schema.yml](https://github.com/doctrine/.github) | `15.0.0` | `15.1.0` | Updates `doctrine/.github/.github/workflows/coding-standards.yml` from 15.0.0 to 15.1.0 - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](https://github.com/doctrine/.github/compare/15.0.0...15.1.0) Updates `doctrine/.github/.github/workflows/continuous-integration.yml` from 15.0.0 to 15.1.0 - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](https://github.com/doctrine/.github/compare/15.0.0...15.1.0) Updates `doctrine/.github/.github/workflows/release-on-milestone-closed.yml` from 15.0.0 to 15.1.0 - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](https://github.com/doctrine/.github/compare/15.0.0...15.1.0) Updates `doctrine/.github/.github/workflows/phpstan.yml` from 15.0.0 to 15.1.0 - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](https://github.com/doctrine/.github/compare/15.0.0...15.1.0) Updates `doctrine/.github/.github/workflows/website-schema.yml` from 15.0.0 to 15.1.0 - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](https://github.com/doctrine/.github/compare/15.0.0...15.1.0) --- updated-dependencies: - dependency-name: doctrine/.github/.github/workflows/coding-standards.yml dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doctrine - dependency-name: doctrine/.github/.github/workflows/continuous-integration.yml dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doctrine - dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doctrine - dependency-name: doctrine/.github/.github/workflows/phpstan.yml dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doctrine - dependency-name: doctrine/.github/.github/workflows/website-schema.yml dependency-version: 15.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doctrine ... Signed-off-by: dependabot[bot] <support@github.com>
2 个月前 Add docs.
7 年前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Remove branchName property for branches with tags This will allow us to remove these branches.
7 个月前 feat(git): add docs/ and CONTRIBUTING.md to export ignore
1 年前 Adjust gitignore for PHPUnit 10
8 个月前 Apply Doctrine CS 2.1
8 年前 Changing ownership in the `LICENSE` file
11 年前 Add "Doctrine" to project header README
2 年前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Using PHPMD 1.* rules class names for compatibility with scrutinizer-ci
11 年前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前 Use shallower trees It is more consistent with what we do on other projects.
6 个月前
Doctrine Instantiator
This library provides a way of avoiding usage of constructors when instantiating PHP classes.
Installation
The suggested installation method is via composer :
composer require doctrine/instantiator
Usage
The instantiator is able to create new instances of any class without using the constructor or any API of the class
itself:
$instantiator = new \Doctrine\Instantiator\Instantiator ();
$instance = $instantiator ->instantiate (\My\ClassName\Here ::class );
Contributing
Please read the CONTRIBUTING.md contents if you wish to help out!
Credits
This library was migrated from ocramius/instantiator , which
has been donated to the doctrine organization, and which is now deprecated in favour of this package.
可用于在不调用类构造函数或类自身 API 的情况下创建 PHP 类的新实例,提供了一种避免使用构造函数实例化 PHP 类的方法。【此简介由AI生成】
定制我的领域 举报项目