Skip to content

Commit

Permalink
Refactoring laravel worker architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
cclilshy committed Nov 15, 2024
1 parent a587638 commit dad37a4
Show file tree
Hide file tree
Showing 39 changed files with 782 additions and 1,411 deletions.
36 changes: 7 additions & 29 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
<?php
/*
* Copyright (c) 2023-2024.
/**
* Copyright © 2024 cclilshy
* Email: [email protected]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* This software is licensed under the MIT License.
* For full license details, please visit: https://opensource.org/licenses/MIT
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* 特此免费授予任何获得本软件及相关文档文件(“软件”)副本的人,不受限制地处理
* 本软件,包括但不限于使用、复制、修改、合并、出版、发行、再许可和/或销售
* 软件副本的权利,并允许向其提供本软件的人做出上述行为,但须符合以下条件:
*
* 上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
*
* 本软件按“原样”提供,不提供任何形式的保证,无论是明示或暗示的,
* 包括但不限于适销性、特定目的的适用性和非侵权性的保证。在任何情况下,
* 无论是合同诉讼、侵权行为还是其他方面,作者或版权持有人均不对
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
* By using this software, you agree to the terms of the license.
* Contributions, suggestions, and feedback are always welcome!
*/

use PhpCsFixer\Config;
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"workerman/workerman": "*",
"workerman/webman-framework": "dev-master",
"yiisoft/yii2": "^2.0@beta"

},
"extra": {
"laravel": {
Expand Down
79 changes: 0 additions & 79 deletions example/workerman4.php

This file was deleted.

84 changes: 0 additions & 84 deletions example/workerman5.php

This file was deleted.

36 changes: 7 additions & 29 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
<!--
~ Copyright (c) 2023-2024.
<!--~
~ Copyright © 2024 cclilshy
~ Email: [email protected]
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~ This software is licensed under the MIT License.
~ For full license details, please visit: https://opensource.org/licenses/MIT
~
~ The above copyright notice and this permission notice shall be included in all
~ copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
~ SOFTWARE.
~
~ 特此免费授予任何获得本软件及相关文档文件(“软件”)副本的人,不受限制地处理
~ 本软件,包括但不限于使用、复制、修改、合并、出版、发行、再许可和/或销售
~ 软件副本的权利,并允许向其提供本软件的人做出上述行为,但须符合以下条件:
~
~ 上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
~
~ 本软件按“原样”提供,不提供任何形式的保证,无论是明示或暗示的,
~ 包括但不限于适销性、特定目的的适用性和非侵权性的保证。在任何情况下,
~ 无论是合同诉讼、侵权行为还是其他方面,作者或版权持有人均不对
~ 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
~ By using this software, you agree to the terms of the license.
~ Contributions, suggestions, and feedback are always welcome!
-->

<phpunit bootstrap="vendor/autoload.php"
Expand Down
36 changes: 7 additions & 29 deletions src/Laravel/Coroutine/ContainerMap.php
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
<?php declare(strict_types=1);
/*
* Copyright (c) 2023-2024.
/**
* Copyright © 2024 cclilshy
* Email: [email protected]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* This software is licensed under the MIT License.
* For full license details, please visit: https://opensource.org/licenses/MIT
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* 特此免费授予任何获得本软件及相关文档文件(“软件”)副本的人,不受限制地处理
* 本软件,包括但不限于使用、复制、修改、合并、出版、发行、再许可和/或销售
* 软件副本的权利,并允许向其提供本软件的人做出上述行为,但须符合以下条件:
*
* 上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
*
* 本软件按“原样”提供,不提供任何形式的保证,无论是明示或暗示的,
* 包括但不限于适销性、特定目的的适用性和非侵权性的保证。在任何情况下,
* 无论是合同诉讼、侵权行为还是其他方面,作者或版权持有人均不对
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
* By using this software, you agree to the terms of the license.
* Contributions, suggestions, and feedback are always welcome!
*/

namespace Ripple\Driver\Laravel\Coroutine;
Expand Down
Loading

0 comments on commit dad37a4

Please sign in to comment.