Skip to content

Commit

Permalink
Support fetching custom config properties
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Jan 8, 2019
1 parent b9da9ad commit b50a000
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Config.php
Expand Up @@ -130,6 +130,14 @@ public function setProperty($key, $value)
return $this;
}

public function getProperty($key)
{
if (!isset($this->properties)) {
return null;
}
return $this->properties[$key];
}

public function validate()
{
if (!$this->getName()) {
Expand Down

0 comments on commit b50a000

Please sign in to comment.