-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Micro-PHP/v1.0
v1.0
- Loading branch information
Showing
13 changed files
with
96 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "Micro Framework: TemporalIO plugin", | ||
"type": "library", | ||
"license": "MIT", | ||
"version": "0.1", | ||
"version": "1.0", | ||
"autoload": { | ||
"psr-4": { | ||
"Micro\\Plugin\\Temporal\\": "src/" | ||
|
@@ -15,15 +15,13 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"scripts": { | ||
"phpcs": "phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0" | ||
}, | ||
"require": { | ||
"micro/kernel": "^1", | ||
"temporal/sdk": ">=2.0", | ||
"spiral/tokenizer": ">=2.7" | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.7", | ||
"phpcompatibility/php-compatibility": "^9.3" | ||
}, | ||
"scripts": { | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
<?php | ||
|
||
namespace Micro\Plugin\Temporal\Activity\Factory; | ||
|
||
use Temporal\Activity\ActivityOptions; | ||
use Temporal\Internal\Workflow\ActivityProxy; | ||
use Temporal\Workflow; | ||
|
||
class ActivityStubFactory implements ActivityStubFactoryInterface | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function create(string $activityInterface): ActivityProxy | ||
{ | ||
return Workflow::newActivityStub($activityInterface, | ||
ActivityOptions::new() | ||
); | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace Micro\Plugin\Temporal\Activity\Factory; | ||
|
||
use Temporal\Internal\Workflow\ActivityProxy; | ||
|
||
interface ActivityStubFactoryInterface | ||
{ | ||
/** | ||
* @template T | ||
* | ||
* @param class-string<T> $activityInterface | ||
* | ||
* @return T | ||
*/ | ||
public function create(string $activityInterface): ActivityProxy; | ||
} |
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
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