Skip to content

Commit f9c27fa

Browse files
committed
Update readme
1 parent c4715c6 commit f9c27fa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ bin/cake plugin load Muffin/Webservice
2323

2424
## Usage
2525

26+
In your `app.php`, configure your `app` service like any other configuration,
27+
by adding a new element to the configure array:
28+
29+
```php
30+
'Webservices' => [
31+
'app' => [
32+
'className' => \Muffin\Webservice\Connection::class,
33+
'service' => 'Articles',
34+
// Any additional keys will be set as Driver's config.
35+
]
36+
]
37+
```
38+
39+
You will also need to load the webservices in your `bootstrap.php` file:
40+
41+
```php
42+
ConnectionManager::config(Configure::consume('Webservices'));
43+
```
44+
2645
### As an ORM
2746

2847
#### Create driver

0 commit comments

Comments
 (0)