File tree Expand file tree Collapse file tree 4 files changed +13
-69
lines changed Expand file tree Collapse file tree 4 files changed +13
-69
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " code16/ozu-client" ,
3
- "description" : " Client to access to Ozu API (https://github.com/ code16/jocko )" ,
3
+ "description" : " Companion package for Ozu projects (https://ozu. code16.fr )" ,
4
4
"keywords" : [
5
5
" code16" ,
6
6
" laravel" ,
10
10
"license" : " MIT" ,
11
11
"authors" : [
12
12
{
13
- "name" : " Code 16 " ,
13
+ "name" : " Antoine Guingand " ,
14
14
"email" : " antoine@code16.fr" ,
15
15
"role" : " Developer"
16
+ },
17
+ {
18
+ "name" : " Philippe Lonchampt" ,
19
+ "email" : " philippe@code16.fr" ,
20
+ "role" : " Developer"
16
21
}
17
22
],
18
23
"require" : {
19
- "php" : " ^ 8.2" ,
24
+ "php" : " 8.2|8.3 " ,
20
25
"code16/laravel-content-renderer" : " ^1.1.0" ,
21
26
"illuminate/contracts" : " ^11.0" ,
22
27
"intervention/image-laravel" : " ^1.0" ,
61
66
"laravel" : {
62
67
"providers" : [
63
68
" Code16\\ OzuClient\\ OzuServiceProvider"
64
- ],
65
- "aliases" : {
66
- "Ozu" : " Code16\\ OzuClient\\ Facades\\ Ozu"
67
- }
69
+ ]
68
70
}
69
71
},
70
72
"minimum-stability" : " dev" ,
Original file line number Diff line number Diff line change 2
2
3
3
namespace Code16 \OzuClient \Console ;
4
4
5
- use Code16 \OzuClient \Facades \ Ozu ;
5
+ use Code16 \OzuClient \Client ;
6
6
use Code16 \OzuClient \OzuCms \Form \OzuField ;
7
7
use Code16 \OzuClient \OzuCms \OzuCollectionFormConfig ;
8
8
use Code16 \OzuClient \OzuCms \OzuCollectionListConfig ;
@@ -16,7 +16,7 @@ class ConfigureCmsCommand extends Command
16
16
protected $ signature = 'ozu:configure-cms ' ;
17
17
protected $ description = 'Send CMS configuration to Ozu. ' ;
18
18
19
- public function handle (): void
19
+ public function handle (Client $ ozuClient ): void
20
20
{
21
21
if (empty (config ('ozu-client.collections ' ))) {
22
22
$ this ->info ('No collections to configure. ' );
@@ -69,9 +69,9 @@ public function handle(): void
69
69
])
70
70
];
71
71
})
72
- ->each (function (array $ collection ) {
72
+ ->each (function (array $ collection ) use ( $ ozuClient ) {
73
73
$ this ->info ('Update CMS configuration for [ ' . $ collection ['key ' ] . ']. ' );
74
- Ozu:: updateCollectionSharpConfiguration (
74
+ $ ozuClient -> updateCollectionSharpConfiguration (
75
75
$ collection ['key ' ],
76
76
$ collection
77
77
);
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments