Skip to content

Commit f868a93

Browse files
Merge pull request #9 from codions/develop
Small fixes
2 parents 9ac055e + 5633691 commit f868a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Theme.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function getNamespace(string $path = null): string
209209
return "Themes\\$vendor\\$name\\" . $path;
210210
}
211211

212-
public function getInstance(string $path)
212+
public function getInstance(string $path, ...$params)
213213
{
214214
if (! $this->enabled()) {
215215
$this->requireClass($path);
@@ -221,7 +221,7 @@ public function getInstance(string $path)
221221
throw new Exception("Class not found: {$class}");
222222
}
223223

224-
return new $class;
224+
return new $class(...$params);
225225
}
226226

227227
/**

0 commit comments

Comments
 (0)