load(); $messages[][] = array('ok', 'Base configuration is ok'); if ($config->access === true) { $messages[][] = array('ok', 'Everyone may access the API'); } else if ($config->access === false) { $messages[][] = array('err', 'API access is disabled'); } else { $messages[][] = array( 'ok', count($config->access) . ' users may access the API' ); } } catch (\Exception $e) { $messages[][] = array('err', $e->getMessage()); } $adapter = array( 'Cutycapt' ); foreach ($adapter as $classpart) { $class = '\\phancap\\Adapter_' . $classpart; $adapter = new $class(); $adapter->setConfig($config); $errors = $adapter->isAvailable(); if ($errors === true) { $messages[][] = array( 'ok', 'Adapter ' . $classpart . ' is available' ); } else { foreach ($errors as $msg) { $messages['Adapter: '. $classpart][] = array('err', $msg); } } } $out = << phancap setup check

phancap setup check