PartKeepr\CoreBundle\Services\SystemService::getSystemStatus PHP Method

getSystemStatus() public method

This method is usuall called once the user logs in, and alerts him if the schema is not up-to-date. Returns either status incomplete if the schema is not up-to-date, or complete if everything is OK.
public getSystemStatus ( )
    public function getSystemStatus()
    {
        if ($this->container->getParameter('partkeepr.cronjob_check')) {
            $inactiveCronjobs = $this->cronLoggerService->getInactiveCronjobs($this->container->getParameter('partkeepr.required_cronjobs'));
        } else {
            // Skip cronjob tests
            $inactiveCronjobs = [];
        }
        return ['inactiveCronjobCount' => count($inactiveCronjobs), 'inactiveCronjobs' => $inactiveCronjobs, 'schemaStatus' => $this->getSchemaStatus()];
    }