Skip to content

Commit e8d2a7a

Browse files
authored
废弃 imi-macro,移出主仓库 (#598)
1 parent cd937b1 commit e8d2a7a

37 files changed

Lines changed: 11 additions & 615 deletions

.github/workflows/phpstan.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ jobs:
141141
run: |
142142
docker exec ${ENV_SERVICE} ./dev/phpstan.sh workerman-gateway
143143
144-
- name: Analyse macro
145-
if: ${{ env.test_prepared && always() }}
146-
run: |
147-
docker exec ${ENV_SERVICE} ./dev/phpstan.sh macro
148-
149144
- name: Analyse phar
150145
if: ${{ env.test_prepared && always() }}
151146
run: |

.github/workflows/rector.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,3 @@ jobs:
140140
if: ${{ env.test_prepared && always() }}
141141
run: |
142142
docker exec -w /imi/src/Components/workerman-gateway ${ENV_SERVICE} /imi/vendor/bin/rector process --dry-run
143-
144-
- name: Analyse macro
145-
if: ${{ env.test_prepared && always() }}
146-
run: |
147-
docker exec -w /imi/src/Components/macro ${ENV_SERVICE} /imi/vendor/bin/rector process --dry-run

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ composer.lock
1212
/split-repository/vendor
1313
/.vscode
1414
*.pid
15-
*.macro.php
1615
/.phpbench
1716
/node_modules
1817
/tests/clover.xml

.php-cs-fixer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
->setFinder(
133133
PhpCsFixer\Finder::create()
134134
->in(__DIR__)
135-
->notName('*.macro.php')
136135
->notPath('src/Components/swoole/src/Util/Coroutine.typed.php') // 兼容 Swoole 5.0,需要 PHP >= 8.0
137136
->notPath('src/Components/hprose/src/Imi-Server-Hprose/Server.php') // bug: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/6534
138137
->notPath('src/Components/grpc/example/grpc')

dev/phpstan.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ components=(
2525
"swoole-tracker"
2626
"workerman"
2727
"workerman-gateway"
28-
"macro"
2928
)
3029

3130
analyze_component() {

dev/rector.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ components=(
2525
"swoole-tracker"
2626
"workerman"
2727
"workerman-gateway"
28-
"macro"
2928
)
3029

3130
analyze_component() {

doc/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
* [定时器](components/timer/index.md)
211211
* [异步执行](components/async/index.md)
212212
* [雪花算法发号器](components/snowflake.md)
213-
* [宏定义](components/macro.md)
214213
* [Phar打包器](components/phar/index.md)
215214
* [imi 组件列表一览](components/list.md)
216215
* [PostgreSQL](components/db/pgsql.md)

doc/base/version/2.1-3.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@
1919
* `Imi\AMQP\Annotation\Connection` 注解类的连接配置全部废弃,只保留 `poolName`
2020

2121
* 废弃 `Imi\AMQP\Swoole\AMQPSwooleConnection` 客户端类
22+
23+
### imi-macro
24+
25+
废弃并移出主仓库,代码仓库:<https://github.com/imiphp/imi-macro>

doc/components/macro.md

Lines changed: 0 additions & 118 deletions
This file was deleted.

doc/components/phar/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ vendor/bin/imi-phar build xxx
4949

5050
// 参与打包的文件
5151
// 可选值:
52-
// - '*'自动包含根目录下的 *.php、*.macro 文件。(默认)
52+
// - '*'自动包含根目录下的 *.php 文件。(默认)
5353
// - 空数组不包含任何文件。
5454
// - 定义数组并填入文件名(仅限于当前目录下的文件)。
5555
'files' => '*',
@@ -225,7 +225,7 @@ return [
225225
### 内置过滤器(vendor)
226226

227227
```php
228-
->notName(['/LICENSE|.*\\.md|.*\\.dist|Makefile/', '*.macro.php'])
228+
->notName(['/LICENSE|.*\\.md|.*\\.dist|Makefile/'])
229229
->exclude([
230230
'doc',
231231
'test',

0 commit comments

Comments
 (0)