Skip to content

Commit a2dd56a

Browse files
Merge pull request #51 from hexadog/develop
Develop
2 parents eaeffab + c83a62a commit a2dd56a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Theme.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ public function setVersion(string $version): self
140140
return $this;
141141
}
142142

143+
public function getVersion(): string
144+
{
145+
return $this->version;
146+
}
147+
143148
/**
144149
* Set theme description.
145150
*/
@@ -150,6 +155,11 @@ public function setDescription(string $description): self
150155
return $this;
151156
}
152157

158+
public function getDescription(): string
159+
{
160+
return $this->description;
161+
}
162+
153163
/**
154164
* Set theme name.
155165
*/

src/ThemesManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function url(string $asset, bool $absolute = true): ?string
187187
* If no vendor provided and name not prefixed by vendor
188188
* the first theme with given name is returned.
189189
*/
190-
protected function findByName(string $name, string $vendor = null): ?Theme
190+
public function findByName(string $name, string $vendor = null): ?Theme
191191
{
192192
// normalize theme name
193193
$name = str_replace(['-theme', 'theme-'], '', $name);

0 commit comments

Comments
 (0)