From ff7840d60f212dd5f395378103bc22f0c273641d Mon Sep 17 00:00:00 2001
From: Dag <me@dvikan.no>
Date: Fri, 9 Feb 2024 22:51:10 +0100
Subject: [PATCH] chore: prepare for introduction of php-webdriver/webdriver
 (Selenium) (#3975)

---
 composer.json     | 1 +
 lib/bootstrap.php | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/composer.json b/composer.json
index 0e7abb84..34f1a80f 100644
--- a/composer.json
+++ b/composer.json
@@ -36,6 +36,7 @@
         "squizlabs/php_codesniffer": "^3.6"
     },
     "suggest": {
+        "php-webdriver/webdriver": "Required for Selenium usage",
         "ext-memcached": "Allows to use memcached as cache type",
         "ext-sqlite3": "Allows to use an SQLite database for caching",
         "ext-zip": "Required for FDroidRepoBridge",
diff --git a/lib/bootstrap.php b/lib/bootstrap.php
index 29c8b97d..bfc7be39 100644
--- a/lib/bootstrap.php
+++ b/lib/bootstrap.php
@@ -1,5 +1,9 @@
 <?php
 
+if (is_file(__DIR__ . '/../vendor/autoload.php')) {
+    require __DIR__ . '/../vendor/autoload.php';
+}
+
 const PATH_LIB_CACHES = __DIR__ . '/../caches/';
 const PATH_CACHE = __DIR__ . '/../cache/';