private function assertExtensions() { if (!extension_loaded('curl')) { throw new NotSupportedException('The "curl" extension is required by this connection backend.'); } if (!extension_loaded('phpiredis')) { throw new NotSupportedException('The "phpiredis" extension is required by this connection backend.'); } }