/** * Returns the list of commands supported by the current * server profile. * * @param ProfileInterface $profile Server profile instance. * * @return array */ protected function getCommands(ProfileInterface $profile) { $commands = $profile->getSupportedCommands(); return array_keys($commands); }