ExceptionDetectNeedsInstallSubscriber
class ExceptionDetectNeedsInstallSubscriber implements EventSubscriberInterface (View source)
Exception handler to determine if an exception indicates an uninstalled site.
Traits
Provides methods for checking if Drupal is already installed.
Properties
| protected Connection | $connection | The default database connection. |
Methods
bool
shouldRedirectToInstaller(Exception $exception, Connection $connection = NULL)
Determines if an exception handler should redirect to the installer.
onException(ExceptionEvent $event)
Handles errors for this subscriber.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
Details
protected bool
isCli()
Returns whether the current PHP process runs on CLI.
protected bool
shouldRedirectToInstaller(Exception $exception, Connection $connection = NULL)
Determines if an exception handler should redirect to the installer.
__construct(Connection $connection)
Constructs a new ExceptionDetectNeedsInstallSubscriber.
onException(ExceptionEvent $event)
Handles errors for this subscriber.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.