]> BookStack Code Mirror - bookstack/blobdiff - app/Services/SearchService.php
Merge pull request #3 from OsmosysSoftware/revert-1-issue-181
[bookstack] / app / Services / SearchService.php
index 670c1545d263a1d9995d5f87fbede79616b7a5a1..3d1d45c3b77d47ab356285f0f45ffa9c58b90115 100644 (file)
@@ -50,6 +50,15 @@ class SearchService
         $this->permissionService = $permissionService;
     }
 
+    /**
+     * Set the database connection
+     * @param Connection $connection
+     */
+    public function setConnection(Connection $connection)
+    {
+        $this->db = $connection;
+    }
+
     /**
      * Search all entities in the system.
      * @param string $searchString