Skip to content

Commit 29e55b3

Browse files
CodeDreddGregor BeckerStyleCIBot
authored
feat(laravel-soap-199): Add Events & Ray support (#200)
* feat(laravel-soap-199): Add Events & Ray support * refactor(laravel-soap-199): fix styleci * Fix styling * Apply fixes from StyleCI (#201) Co-authored-by: StyleCI Bot <[email protected]> * refactor(laravel-soap-199): fix larastan stuff * Fix styling * feat(laravel-soap-199): add working ray * Fix styling * Apply fixes from StyleCI (#202) Co-authored-by: StyleCI Bot <[email protected]> * refactor(laravel-soap-199): change ray function namings Co-authored-by: Gregor Becker <[email protected]> Co-authored-by: CodeDredd <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
1 parent 77be9e5 commit 29e55b3

19 files changed

+765
-88
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6+
7+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8+
9+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10+
11+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12+
13+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
### Reproduction
10+
11+
If possible, provide a boiled down editable reproduction using a service like JSFiddle, Codepen, CodeSandbox, or a GitHub repository based on this template: https://github.com/piniajs/bug-report. A failing unit test is even better! Otherwise provide as much information as possible to reproduce the problem. You can find examples of different environments at https://github.com/piniajs?q=example&type=source and use them as a bug reproduction.
12+
If no reproduction is provided and the information is not enough to reproduce the problem, we won't be able to give it a look **and the issue will be converted into a question and moved to discussions**.
13+
14+
### Steps to reproduce the behavior
15+
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
### Expected behavior
22+
23+
A clear and concise description of what you expected to happen.
24+
25+
### Actual behavior
26+
27+
A clear and concise description of what actually happens.
28+
29+
### Additional information
30+
31+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
url: https://github.com/CodeDredd/laravel-soap/discussions/new?category=q-a
5+
about: Ask the community for help
6+
- name: Request a feature
7+
url: https://github.com/CodeDredd/laravel-soap/discussions/new?category=ideas
8+
about: Share ideas for new features
9+
- name: Report a security issue
10+
url: https://github.com/CodeDredd/laravel-soap/security/policy
11+
about: Learn how to notify us for sensitive bugs
12+
- name: Report a bug
13+
url: https://github.com/CodeDredd/laravel-soap/issues/new
14+
about: Report a reproducable bug
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature request
6+
assignees: ''
47

58
---
69

7-
**Is your feature request related to a problem? Please describe.**
8-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
### What problem is this solving
911

10-
**Describe the solution you'd like**
11-
A clear and concise description of what you want to happen.
12+
A clear and concise description of what the problem is. Ex. when using the function X we cannot do Y.
1213

13-
**Describe alternatives you've considered**
14-
A clear and concise description of any alternative solutions or features you've considered.
14+
### Proposed solution
15+
16+
A clear and concise description of what you want to happen with an API proposal when applicable
1517

16-
**Are you able to assist bring the feature to reality?**
17-
no | yes, I can...
18+
### Describe alternatives you've considered
1819

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
20+
A clear and concise description of any alternative solutions or features you've considered.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
.env
23
.php_cs
34
.php_cs.cache
45
.phpunit.result.cache
@@ -12,3 +13,4 @@ testbench.yaml
1213
vendor
1314
node_modules
1415
.php-cs-fixer.cache
16+
ray.php

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"robrichards/wse-php": "^2.0",
2828
"php-soap/psr18-transport": "^1.2",
2929
"php-soap/psr18-wsse-middleware": "^1.1",
30-
"veewee/xml": "^1.3"
30+
"veewee/xml": "^1.3",
31+
"spatie/laravel-package-tools": "^1.11",
32+
"illuminate/contracts": "^9.0"
3133
},
3234
"require-dev": {
3335
"symfony/options-resolver": "^5.4.3",
@@ -36,7 +38,8 @@
3638
"laminas/laminas-code": "^4.5.1",
3739
"nunomaduro/larastan": "^2.0",
3840
"nunomaduro/collision": "^6.1",
39-
"symplify/easy-ci": "^10.0"
41+
"symplify/easy-ci": "^10.0",
42+
"spatie/laravel-ray": "^1.29"
4043
},
4144
"autoload": {
4245
"psr-4": {

composer.lock

Lines changed: 72 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/soap.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
'namespace' => 'App\\Soap',
1717
],
1818

19+
/*
20+
|--------------------------------------------------------------------------
21+
| SOAP Code Generation directory
22+
|--------------------------------------------------------------------------
23+
|
24+
| Define the destination for the code generator under the app directory
25+
*/
26+
27+
'ray' => [
28+
'send_soap_client_requests' => false,
29+
],
30+
1931
/*
2032
|--------------------------------------------------------------------------
2133
| SOAP Client Configuration
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace CodeDredd\Soap\Client\Events;
4+
5+
use CodeDredd\Soap\Client\Request;
6+
7+
class ConnectionFailed
8+
{
9+
/**
10+
* The request instance.
11+
*
12+
* @var \CodeDredd\Soap\Client\Request
13+
*/
14+
public $request;
15+
16+
/**
17+
* Create a new event instance.
18+
*
19+
* @param \CodeDredd\Soap\Client\Request $request
20+
* @return void
21+
*/
22+
public function __construct(Request $request)
23+
{
24+
$this->request = $request;
25+
}
26+
}

src/Client/Events/RequestSending.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace CodeDredd\Soap\Client\Events;
4+
5+
use CodeDredd\Soap\Client\Request;
6+
7+
class RequestSending
8+
{
9+
/**
10+
* The request instance.
11+
*/
12+
public Request $request;
13+
14+
/**
15+
* Create a new event instance.
16+
*
17+
* @param Request $request
18+
* @return void
19+
*/
20+
public function __construct(Request $request)
21+
{
22+
$this->request = $request;
23+
}
24+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
namespace CodeDredd\Soap\Client\Events;
4+
5+
use CodeDredd\Soap\Client\Request;
6+
use CodeDredd\Soap\Client\Response;
7+
8+
class ResponseReceived
9+
{
10+
/**
11+
* The request instance.
12+
*
13+
* @var \CodeDredd\Soap\Client\Request
14+
*/
15+
public Request $request;
16+
17+
/**
18+
* The response instance.
19+
*
20+
* @var \CodeDredd\Soap\Client\Response
21+
*/
22+
public Response $response;
23+
24+
/**
25+
* Create a new event instance.
26+
*
27+
* @param \CodeDredd\Soap\Client\Request $request
28+
* @param \CodeDredd\Soap\Client\Response $response
29+
* @return void
30+
*/
31+
public function __construct(Request $request, Response $response)
32+
{
33+
$this->request = $request;
34+
$this->response = $response;
35+
}
36+
}

0 commit comments

Comments
 (0)