Skip to content

Commit

Permalink
Merge pull request #543: Add metadata for Meta Storm plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Feb 6, 2025
2 parents 616d1d1 + 48869c1 commit d6eb0d0
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
* text=auto

/.* export-ignore
config/ export-ignore
resources/scripts/ export-ignore
runtime/ export-ignore
tests/ export-ignore
/config/ export-ignore
/resources/scripts/ export-ignore
/runtime/ export-ignore
/tests/ export-ignore

/*.xml export-ignore
/*.xml.dist export-ignore
Expand Down
3 changes: 3 additions & 0 deletions .idea/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,15 @@ If you are not using Docker or running PHP code outside a container, you can use
Now use the `trap()`, `tr()`, or `dump()` functions to output data to Buggregator.
Web UI will be available at `http://localhost:8000`.

### IDE Plugin

For advanced autocomplete while coding in PHPStorm, use [Meta Storm plugin](https://github.com/xepozz/meta-storm-idea-plugin).
The plugin provides better autocomplete and links Workflow and Activity when writing and debugging code.

## Resources

Read the docs
[![Temporal Documentation](https://img.shields.io/static/v1?style=flat-square&label=&message=Dcumentation&logo=Temporal&color=7744ee)](https://docs.temporal.io/)
[![Temporal Documentation](https://img.shields.io/static/v1?style=flat-square&label=&message=Documentation&logo=Temporal&color=7744ee)](https://docs.temporal.io/)
[![PHP SDK Documentation](https://img.shields.io/static/v1?style=flat-square&label=PHP+SDK&message=Dev+guide&logo=Temporal&color=7766ee)](https://docs.temporal.io/develop/php)
[![PHP SDK API](https://img.shields.io/static/v1?style=flat-square&label=PHP+SDK&message=API&logo=PHP&color=447723&logoColor=aa88ff)](https://php.temporal.io/)

Expand Down
35 changes: 35 additions & 0 deletions resources/client.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<classMethod
class="\Temporal\Client\WorkflowClientInterface"
method="newUntypedWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Client\WorkflowClientInterface"
method="newUntypedRunningWorkflowStub"
argument="2"
>
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Client\WorkflowClientInterface"
method="newWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-class" argument="0" />
<stopCompletion />
</classMethod>
</definitions>
</meta-storm>
18 changes: 18 additions & 0 deletions resources/collections.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<collections>
<attributeArgument
name="temporal/sdk:workflow-type"
class="\Temporal\Workflow\WorkflowMethod"
argument="0"
/>
<attributeClass
name="temporal/sdk:workflow-class"
class="\Temporal\Workflow\WorkflowInterface"
/>
<attributeClass
name="temporal/sdk:activity-class"
class="\Temporal\Activity\ActivityInterface"
/>
</collections>
</meta-storm>
78 changes: 78 additions & 0 deletions resources/workflow.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<classMethod
class="\Temporal\Workflow"
method="continueAsNew"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newContinueAsNewStub"
argument="0"
>
<collection name="temporal/sdk:workflow-class" argument="0" />
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="executeChildWorkflow"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newUntypedChildWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-type" argument="0">
<extractor xpath="" stopIfResolved="true" />
<extractor xpath="$containingClass" />
</collection>
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newChildWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-class" argument="0" />
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newExternalWorkflowStub"
argument="0"
>
<collection name="temporal/sdk:workflow-class" argument="0" />
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="executeActivity"
argument="0"
>
<collection name="temporal/sdk:activity-type" argument="0" />
<stopCompletion />
</classMethod>
<classMethod
class="\Temporal\Workflow"
method="newActivityStub"
argument="0"
>
<collection name="temporal/sdk:activity-class" argument="0" />
<stopCompletion />
</classMethod>
</definitions>
</meta-storm>

0 comments on commit d6eb0d0

Please sign in to comment.