Skip to content

Commit ea33508

Browse files
author
Michael v/d Rijt
authored
Merge pull request #93 from MedRespondCME/master
Fixed Service functions example in the README
2 parents 506bdf0 + 8e60ed0 commit ea33508

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,27 @@ Service functions
120120
============
121121
```php
122122
$this->soapWrapper->add('Currency', function ($service) {
123-
->name() // The name you want to give your service
124-
->wsdl() // The WSDL url
125-
->trace(true) // Optional: (parameter: true/false)
126-
->header() // Optional: (parameters: $namespace,$name,$data,$mustunderstand,$actor)
127-
->customHeader() // Optional: (parameters: $customerHeader) Use this to add a custom SoapHeader or extended class
128-
->cookie() // Optional: (parameters: $name,$value)
129-
->location() // Optional: (parameter: $location)
130-
->certificate() // Optional: (parameter: $certLocation)
131-
->cache(WSDL_CACHE_NONE) // Optional: Set the WSDL cache
123+
$service
124+
->wsdl() // The WSDL url
125+
->trace(true) // Optional: (parameter: true/false)
126+
->header() // Optional: (parameters: $namespace,$name,$data,$mustunderstand,$actor)
127+
->customHeader() // Optional: (parameters: $customerHeader) Use this to add a custom SoapHeader or extended class
128+
->cookie() // Optional: (parameters: $name,$value)
129+
->location() // Optional: (parameter: $location)
130+
->certificate() // Optional: (parameter: $certLocation)
131+
->cache(WSDL_CACHE_NONE) // Optional: Set the WSDL cache
132132

133-
// Optional: Set some extra options
134-
->options([
135-
'login' => 'username',
136-
'password' => 'password'
137-
])
138-
139-
// Optional: Classmap
140-
->classmap([
141-
GetConversionAmount::class,
142-
GetConversionAmountResponse::class,
143-
]);
133+
// Optional: Set some extra options
134+
->options([
135+
'login' => 'username',
136+
'password' => 'password'
137+
])
138+
139+
// Optional: Classmap
140+
->classmap([
141+
GetConversionAmount::class,
142+
GetConversionAmountResponse::class,
143+
]);
144144
});
145145
```
146146

0 commit comments

Comments
 (0)