Skip to content

Commit ae415e1

Browse files
committed
Cleanup
1 parent bd97037 commit ae415e1

File tree

4 files changed

+13
-69
lines changed

4 files changed

+13
-69
lines changed

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"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)",
44
"keywords": [
55
"code16",
66
"laravel",
@@ -10,13 +10,18 @@
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": "Code 16",
13+
"name": "Antoine Guingand",
1414
"email": "antoine@code16.fr",
1515
"role": "Developer"
16+
},
17+
{
18+
"name": "Philippe Lonchampt",
19+
"email": "philippe@code16.fr",
20+
"role": "Developer"
1621
}
1722
],
1823
"require": {
19-
"php": "^8.2",
24+
"php": "8.2|8.3",
2025
"code16/laravel-content-renderer": "^1.1.0",
2126
"illuminate/contracts": "^11.0",
2227
"intervention/image-laravel": "^1.0",
@@ -61,10 +66,7 @@
6166
"laravel": {
6267
"providers": [
6368
"Code16\\OzuClient\\OzuServiceProvider"
64-
],
65-
"aliases": {
66-
"Ozu": "Code16\\OzuClient\\Facades\\Ozu"
67-
}
69+
]
6870
}
6971
},
7072
"minimum-stability": "dev",

src/Console/ConfigureCmsCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Code16\OzuClient\Console;
44

5-
use Code16\OzuClient\Facades\Ozu;
5+
use Code16\OzuClient\Client;
66
use Code16\OzuClient\OzuCms\Form\OzuField;
77
use Code16\OzuClient\OzuCms\OzuCollectionFormConfig;
88
use Code16\OzuClient\OzuCms\OzuCollectionListConfig;
@@ -16,7 +16,7 @@ class ConfigureCmsCommand extends Command
1616
protected $signature = 'ozu:configure-cms';
1717
protected $description = 'Send CMS configuration to Ozu.';
1818

19-
public function handle(): void
19+
public function handle(Client $ozuClient): void
2020
{
2121
if (empty(config('ozu-client.collections'))) {
2222
$this->info('No collections to configure.');
@@ -69,9 +69,9 @@ public function handle(): void
6969
])
7070
];
7171
})
72-
->each(function (array $collection) {
72+
->each(function (array $collection) use ($ozuClient) {
7373
$this->info('Update CMS configuration for [' . $collection['key'] . '].');
74-
Ozu::updateCollectionSharpConfiguration(
74+
$ozuClient->updateCollectionSharpConfiguration(
7575
$collection['key'],
7676
$collection
7777
);

src/Facades/Ozu.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Support/WebsiteSettings.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)