You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get the latest version, simply require the project using [Composer](https://getcomposer.org/):
32
33
33
34
```bash
34
-
$ composer require "graham-campbell/gitlab:^7.6"
35
+
$ composer require "graham-campbell/gitlab:^8.0"
35
36
```
36
37
37
38
Once installed, if you are not using automatic package discovery, then you need to register the `GrahamCampbell\GitLab\GitLabServiceProvider` service provider in your `config/app.php`.
@@ -124,11 +125,9 @@ use GrahamCampbell\GitLab\GitLabManager;
124
125
125
126
class Foo
126
127
{
127
-
private GitLabManager $gitlab;
128
-
129
-
public function __construct(GitLabManager $gitlab)
130
-
{
131
-
$this->gitlab = $gitlab;
128
+
public function __construct(
129
+
private readonly GitLabManager $gitlab,
130
+
) {
132
131
}
133
132
134
133
public function bar()
@@ -140,7 +139,7 @@ class Foo
140
139
app(Foo::class)->bar();
141
140
```
142
141
143
-
For more information on how to use the `Gitlab\Client` class we are calling behind the scenes here, check out the docs at https://github.com/GitLabPHP/Client/tree/11.14.0#general-api-usage, and the manager class at https://github.com/GrahamCampbell/Laravel-Manager#usage.
142
+
For more information on how to use the `Gitlab\Client` class we are calling behind the scenes here, check out the docs at https://github.com/GitLabPHP/Client/tree/12.0.0#general-api-usage, and the manager class at https://github.com/GrahamCampbell/Laravel-Manager#usage.
0 commit comments