Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phame / site / PhameSite.php
blob57ac543f3038b94c348f45c9ea04b351a1c7dee9
1 <?php
3 abstract class PhameSite extends PhabricatorSite {
5 protected function isPhameActive() {
6 $base_uri = PhabricatorEnv::getEnvConfig('phabricator.base-uri');
7 if (!strlen($base_uri)) {
8 // Don't activate Phame if we don't have a base URI configured.
9 return false;
12 $phame_installed = PhabricatorApplication::isClassInstalled(
13 'PhabricatorPhameApplication');
14 if (!$phame_installed) {
15 // Don't activate Phame if the the application is uninstalled.
16 return false;
19 return true;