ibexa / rector
Ibexa Rector 重构工具规则集
dev-main / 5.0.x-dev
2024-09-19 13:56 UTC
Requires
- php: >=8.3
- rector/rector: ^1.0
- symfony/config: ^5.4
- symfony/console: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/event-dispatcher: ^5.4
- symfony/http-foundation: ^5.4
- symfony/http-kernel: ^5.4
- symfony/yaml: ^5.4
Requires (Dev)
- ibexa/code-style: ~2.0.0
- nikic/php-parser: ^4.18
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10
- qossmic/deptrac-shim: ^0.24.0 || ^1.0.2
This package is auto-updated.
Last update: 2024-09-19 13:56:28 UTC
README
此包是 Ibexa DXP 的一部分。
此包提供了一组 Rector 规则,允许在 Ibexa DXP 版本之间自动升级。
要使用此包,请先 安装 Ibexa DXP,然后按照以下安装说明操作。
安装
composer require --dev ibexa/rector:~5.0.x-dev
使用方法
- 在您的项目中创建
./rector.php
文件,内容如下,根据您的项目结构进行调整declare(strict_types=1); use Ibexa\Contracts\Rector\Sets\IbexaSetList; use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPaths( [ __DIR__ . '/src', // see if it matches your project structure __DIR__ . '/tests' ] ) ->withSets( [ IbexaSetList::IBEXA_50->value // rule set for upgrading to Ibexa DXP 5.0 ] ) ;
- 执行 Rector
php ./bin/rector process <directory>
贡献
查看 贡献指南 了解如何添加规则。
版权
版权所有(C) 1999-2024 Ibexa AS(原名eZ Systems AS)。保留所有权利。
许可
此源代码可在以下许可下单独使用
A - Ibexa 商业使用许可协议(Ibexa BUL),版本 2.4 或更高版本(因为许可条款可能会不时更新)Ibexa BUL 通过拥有有效的 Ibexa DXP(原名 eZ Platform Enterprise)订阅获得,详情请参阅:https://www.ibexa.co/product 完整的 Ibexa BUL 许可协议文本请见
- 此源代码根目录中的 LICENSE-bul 文件,或
- https://www.ibexa.co/software-information/licenses-and-agreements(适用最新版本)
以及
B - GNU 通用公共许可证,版本 2 授予一个绝对无担保的开源许可。完整 GPL 许可协议文本请见
- 此源代码根目录中的 LICENSE 文件,或
- https://gnu.ac.cn/licenses/old-licenses/gpl-2.0.html