From 2cc8c1a8ea904ec2de857ede865a7bccc0000de4 Mon Sep 17 00:00:00 2001
From: Sam Light <samlight1994@gmail.com>
Date: Sat, 15 Jun 2024 23:03:44 +0100
Subject: Implemented everything

---
 src/SvgService.php | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'src/SvgService.php')

diff --git a/src/SvgService.php b/src/SvgService.php
index 436e9ec..4d8afe0 100644
--- a/src/SvgService.php
+++ b/src/SvgService.php
@@ -11,7 +11,7 @@ class SvgService
         $collections = config('svg.collections');
 
         foreach ($collections as $k => $collection) {
-            $this->addCollectionConfig($k, $collection);
+            $this->addCollectionFromConfig($k, $collection);
         }
     }
 
@@ -29,7 +29,6 @@ class SvgService
         $this->addCollection($c);
     }
 
-
     public function addCollection(SvgCollection $collection): void
     {
         $this->collections[$collection->getName()] = $collection;
@@ -47,7 +46,13 @@ class SvgService
 
     public function getSvgUrl(string $collection, string $svg): string
     {
-        return $this->collections[$collection]->getSvgUrl($collection, $svg);
+        return $this->collections[$collection]->getSvgUrl($svg);
     }
 
+    public function getCollection(string $collection): ?SvgCollection
+    {
+        return $this->collections[$collection] ?? null;
+    }
+
+
 }
-- 
cgit v1.2.3