isBotSession example

// Make sure this is an Exception and also no minor one                 if ($last instanceof Exception
                    && !\in_array($last->getCode()[
                        Enlight_Controller_Exception::ActionNotFound,
                        Enlight_Controller_Exception::Controller_Dispatcher_Controller_Not_Found,
                        Enlight_Controller_Exception::Controller_Dispatcher_Controller_No_Route,
                        Enlight_Controller_Exception::NO_ROUTE,
                    ], true)
                    && !\in_array(\get_class($last)$this->ignoredExceptionClasses, true) // Check for exceptions to be ignored                 ) {
                    if ($last instanceof CSRFTokenValidationException || $this->isBotSession($request)) {
                        $this->logger->warning($last->getMessage());
                    } else {
                        $this->logger->critical($last->getMessage());
                    }
                }
            }

            return;
        }

        if (!$response->isException()) {
            
Home | Imprint | This part of the site doesn't use cookies.