Skip to content

Commit cb2979f

Browse files
Do not document models anymore
1 parent 68d97b6 commit cb2979f

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,30 +94,6 @@ $pager = new Gitlab\ResultPager($client);
9494
$issues = $pager->fetchAll($client->issues(), 'all', [null, ['state' => 'closed']]);
9595
```
9696

97-
### Model Usage
98-
99-
You can also use the library in an object oriented manner:
100-
101-
```php
102-
// Creating a new project
103-
$project = Gitlab\Model\Project::create($client, 'My Project', [
104-
'description' => 'This is my project',
105-
'issues_enabled' => false,
106-
]);
107-
108-
$project->addHook('https://mydomain.com/hook/push/1');
109-
110-
// Creating a new issue
111-
$project = new Gitlab\Model\Project(1, $client);
112-
$issue = $project->createIssue('This does not work.', [
113-
'description' => 'This doesn\'t work properly. Please fix.',
114-
'assignee_id' => 2,
115-
]);
116-
117-
// Closing that issue
118-
$issue->close();
119-
```
120-
12197
### HTTP Client Builder
12298

12399
By providing a `Gitlab\HttpClient\Builder` to the `Gitlab\Client` constructor, you can customize the HTTP client. For example, to customize the user agent:
@@ -133,7 +109,7 @@ $builder->addPlugin($plugin);
133109
$client = new Gitlab\Client($builder);
134110
```
135111

136-
One can read more about HTTPlug plugins [here](https://docs.php-http.org/en/latest/plugins/introduction.html#how-it-works). Take a look around ([API methods](https://github.com/GitLabPHP/Client/tree/10.0/src/Api), [models](https://github.com/GitLabPHP/Client/tree/10.0/src/Model)) and please feel free to report any bugs, noting our [code of conduct](.github/CODE_OF_CONDUCT.md).
112+
One can read more about HTTPlug plugins [here](https://docs.php-http.org/en/latest/plugins/introduction.html#how-it-works). Take a look around the [API methods](https://github.com/GitLabPHP/Client/tree/10.0/src/Api), and please feel free to report any bugs, noting our [code of conduct](.github/CODE_OF_CONDUCT.md).
137113

138114

139115
## Contributing

0 commit comments

Comments
 (0)