l10n->t('Cron errors');
}
public function run(): SetupResult {
$errors = json_decode($this->config->getAppValue('core', 'cronErrors', ''), true);
if (is_array($errors) && count($errors) > 0) {
return SetupResult::error(
$this->l10n->t(
"It was not possible to execute the cron job via CLI. The following technical errors have appeared:\n%s",
implode("\n", array_map(fn (array $error) => '- '.$error['error'].' '.$error['hint'], $errors))
)
);
} else {
return SetupResult::success($this->l10n->t('The last cron job ran without errors.'));
}
}
}
.0'>8.0
Vaadin 6, 7, 8 is a Java framework for modern Java web applications: https://github.com/vaadin/framework
/* * Copyright 2000-2018 Vaadin Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */packagecom.vaadin.ui;importjava.io.Serializable;/** * A base class for generating an unique object that is serializable. * <p> * This class is abstract but has no abstract methods to force users to create * an anonymous inner class. Otherwise each instance will not be unique. * * @author Vaadin Ltd * @since 6.8.0 * */publicabstractclassUniqueSerializableimplementsSerializable{@OverridepublicinthashCode(){returngetClass().hashCode();}@Overridepublicbooleanequals(Objectobj){returngetClass()==obj.getClass();}}