events and hooks

This commit is contained in:
2024-10-09 13:47:03 +03:00
parent b208e79d15
commit c3e6f9ff64
12 changed files with 111 additions and 40 deletions
+4 -1
View File
@@ -3,6 +3,9 @@
namespace Lucent\Channel;
use DirectoryIterator;
use Illuminate\Support\Str;
use Intervention\Image\Drivers\Imagick\Encoders\WebpEncoder;
use Lucent\Channel\Data\UserCommand;
use Lucent\Primitive\Collection;
use Lucent\Schema\Schema;
@@ -38,7 +41,7 @@ final class ChannelService
$channel = new Channel(
name: config("lucent.name") ?? "",
url: rtrim(config("lucent.url") ?? "", "/"),
previewTarget: rtrim(config("lucent.previewTarget") ?? "", "/"),
previewTarget: rtrim(config("lucent.preview_target") ?? "", "/"),
commands: Collection::make($userCommands),
schemas: $schemasCollection,
imageFilters: config("lucent.imageFilters") ?? [],