src/EventListener/ConfigurationNoticesListener.php
protected function systemlogCheck()
    {
        // Get the number of items in the changelog
        $count = $this->app['storage']->getRepository(LogSystem::class)->count();

        if ($count > $this->logThreshold) {
            $message = sprintf(
                "Bolt's <strong>systemlog</strong> is enabled, and there are more than %s rows in the table.",
                $this->logThreshold
            );
            $info = sprintf(
                "Be sure to clean it up periodically, using a Cron job or on the <a href='%s'>Systemlog page</a>.",
                $this->app['url_generator']->generate('systemlog')
            );
            $notice = json_encode([
                'severity' => 1,
                'notice'   => $message,
                'info'     => $info,
            ]);
            $this->app['logger.flash']->configuration($notice);
        }
    }
protected function systemlogCheck()
    {
        // Get the number of items in the changelog
        $count = $this->app['storage']->getRepository(LogSystem::class)->count();

        if ($count > $this->logThreshold) {
            $message = sprintf(
                "Bolt's <strong>systemlog</strong> is enabled, and there are more than %s rows in the table.",
                $this->logThreshold
            );
            $info = sprintf(
                "Be sure to clean it up periodically, using a Cron job or on the <a href='%s'>Systemlog page</a>.",
                $this->app['url_generator']->generate('systemlog')
            );
            $notice = json_encode([
                'severity' => 1,
                'notice'   => $message,
                'info'     => $info,
            ]);
            $this->app['logger.flash']->configuration($notice);
        }
    }
protected function systemlogCheck ( ) { // Get the number of items in the changelog $ count = $ this -> app [ 'storage' ] -> getRepository ( LogSystem :: class ) -> count ( ) ; if ( $ count > $ this -> logThreshold ) { $ message = sprintf ( "Bolt's <strong>systemlog</strong> is enabled, and there are more than %s rows in the table." , $ this -> logThreshold ) ; $ info = sprintf ( "Be sure to clean it up periodically, using a Cron job or on the <a href='%s'>Systemlog page</a>." , $ this -> app [ 'url_generator' ] -> generate ( 'systemlog' ) ) ; $ notice = json_encode ( [ 'severity' => 1 , 'notice' => $ message , 'info' => $ info , ] ) ; $ this -> app [ 'logger.flash' ] -> configuration ( $ notice ) ; } }
Check if systemlog doesn't contain too many rows.
Check if systemlog doesn t contain too many rows .