ui = new SilentUI(); } #[Required] /** @see https://symfony.com/doc/current/logging/channels_handlers.html#how-to-autowire-logger-channels */ public function setLoggerInterface(LoggerInterface $cronLogger): void { $this->logger = $cronLogger; } final public function name(): string { return StringsUtils::camelToSnake( preg_replace('/(?:\w+\\\)*(\w+)$/', '$1', static::class), '-' ); } public function setUI(CronUIInterface $ui): void { $this->ui = $ui; } }