Skip to content

Commit afb635f

Browse files
committed
Update readme.
1 parent 18f574c commit afb635f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015 Use Muffin
1+
Copyright (c) 2015-Present Use Muffin
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ You then need to load the plugin. You can use the shell command:
2121
bin/cake plugin load Muffin/Webservice
2222
```
2323

24-
or by manually adding statement shown below to your app's `Application::bootstrap()` method:
25-
26-
```php
27-
$this->addPlugin('Muffin/Webservice');
28-
```
29-
3024
## Usage
3125

3226
### As an ORM
@@ -35,15 +29,13 @@ $this->addPlugin('Muffin/Webservice');
3529

3630
```php
3731
<?php
38-
3932
namespace App\Webservice\Driver;
4033

4134
use Cake\Network\Http\Client;
4235
use Muffin\Webservice\AbstractDriver;
4336

4437
class Articles extends AbstractDriver
4538
{
46-
4739
/**
4840
* Initialize is used to easily extend the constructor.
4941
*/
@@ -60,7 +52,6 @@ class Articles extends AbstractDriver
6052

6153
```php
6254
<?php
63-
6455
namespace App\Webservice;
6556

6657
use Muffin\Webservice\Query;
@@ -69,7 +60,6 @@ use Muffin\Webservice\Webservice\Webservice;
6960

7061
class ArticlesWebservice extends Webservice
7162
{
72-
7363
/**
7464
* Executes a query with the read action using the Cake HTTP Client
7565
*/
@@ -92,37 +82,32 @@ class ArticlesWebservice extends Webservice
9282

9383
```php
9484
<?php
95-
9685
namespace App\Model\Endpoint;
9786

9887
use Muffin\Webservice\Model\Endpoint;
9988

10089
class ArticlesEndpoint extends Endpoint
10190
{
102-
10391
}
10492
```
10593

10694
#### Create a resource (optional)
10795

10896
```php
10997
<?php
110-
11198
namespace App\Model\Resource;
11299

113100
use Muffin\Webservice\Model\Resource;
114101

115102
class Article extends Resource
116103
{
117-
118104
}
119105
```
120106

121107
#### Use it
122108

123109
```php
124110
<?php
125-
126111
namespace App\Controller;
127112

128113
use Cake\Event\Event;
@@ -191,7 +176,7 @@ http://github.com/usemuffin/webservice/issues
191176

192177
## License
193178

194-
Copyright (c) 2015, [Use Muffin] and licensed under [The MIT License][mit].
179+
Copyright (c) 2015-Present, [Use Muffin] and licensed under [The MIT License][mit].
195180

196181
[cakephp]:http://cakephp.org
197182
[composer]:http://getcomposer.org

0 commit comments

Comments
 (0)