Eg when Matomo is not installed, it would still dispatch the request in https://github.com/matomo-org/matomo/blob/3.8.1-b1/plugins/Installation/Installation.php#L111 even when
PIWIK_ENABLE_DISPATCH is disabled.
Will set it to WIP for now as I'm not sure if we want to have this actually merged or not.
Not sure we can easily add a test for this? Basically the idea is to throw the exception when dispatch is disabled.
Not sure it's so easily possible to test as we need to bootstrap Matomo and set
false. Could maybe embed a PHP file in the test directory that bootstraps it. It should actually throw an exception in this case. Might quickly have a look later.