-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RoadRunner Lock Plugin Integration (#94)
Adds RoadRunner lock plugin support
- Loading branch information
1 parent
f428e6b
commit 9206d2a
Showing
14 changed files
with
257 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,42 +5,57 @@ | |
"license": "MIT", | ||
"homepage": "https://spiral.dev", | ||
"support": { | ||
"issues": "https://github.com/spiral/framework/issues", | ||
"source": "https://github.com/spiral/roadrunner-bridge" | ||
"issues": "https://github.com/spiral/roadrunner-bridge/issues", | ||
"source": "https://github.com/spiral/roadrunner-bridge", | ||
"docs": "https://spiral.dev/docs", | ||
"forum": "https://forum.spiral.dev", | ||
"chat": "https://discord.gg/V6EK4he" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Anton Titov (wolfy-j)", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Pavel Buchnev (butschster)", | ||
"name": "Pavel Butchnev (butschster)", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Aleksei Gagarin (roxblnfk)", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Maksim Smakouz (msmakouz)", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.1", | ||
"psr/simple-cache": "^3.0", | ||
"psr/http-factory": "^1.0.2", | ||
"grpc/grpc": "^1.42", | ||
"roadrunner-php/centrifugo": "^2.0", | ||
"spiral/roadrunner-http": "^3.0", | ||
"spiral/roadrunner-grpc": "^3.2", | ||
"spiral/roadrunner-jobs": "^4.0", | ||
"spiral/roadrunner-kv": "^4.0", | ||
"spiral/roadrunner-tcp": "^3.0", | ||
"spiral/roadrunner-metrics": "^3.0", | ||
"roadrunner-php/app-logger": "^1.0", | ||
"spiral/framework": "^3.7", | ||
"roadrunner-php/centrifugo": "^2.0", | ||
"roadrunner-php/lock": "^1.0", | ||
"spiral/serializer": "^3.7", | ||
"spiral/scaffolder": "^3.7" | ||
}, | ||
"require-dev": { | ||
"spiral/framework": "^3.7", | ||
"spiral/testing": "^2.6.1", | ||
"phpunit/phpunit": "^10.1", | ||
"vimeo/psalm": "^5.0", | ||
"spiral/nyholm-bridge": "^1.2" | ||
}, | ||
"suggest": { | ||
"ext-protobuf": "For better performance, install the protobuf C extension." | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Spiral\\RoadRunnerBridge\\": "src" | ||
|
@@ -54,6 +69,16 @@ | |
"Spiral\\Tests\\": "tests/src" | ||
} | ||
}, | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/roadrunner-server" | ||
} | ||
], | ||
"scripts": { | ||
"test": "vendor/bin/phpunit", | ||
"psalm": "vendor/bin/psalm --no-cache --config=psalm.xml ./src" | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\RoadRunnerBridge\Bootloader; | ||
|
||
use RoadRunner\Lock\Lock; | ||
use RoadRunner\Lock\LockInterface; | ||
use Spiral\Boot\Bootloader\Bootloader; | ||
|
||
final class LockBootloader extends Bootloader | ||
{ | ||
public function defineDependencies(): array | ||
{ | ||
return [ | ||
RoadRunnerBootloader::class, | ||
]; | ||
} | ||
|
||
public function defineSingletons(): array | ||
{ | ||
return [ | ||
LockInterface::class => Lock::class, | ||
]; | ||
} | ||
} |
Oops, something went wrong.