Skip to content

Commit

Permalink
Merge pull request #17 from sitegeist/feature/namespace-api
Browse files Browse the repository at this point in the history
[FEATURE] Provide API to get component namespaces
  • Loading branch information
s2b authored Jul 2, 2019
2 parents ea166d6 + eeda359 commit d00771d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/Utility/ComponentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ public function setNamespaces(array $namespaces): self
return $this;
}

/**
* Returns all registered component namespaces
*
* @return array
*/
public function getNamespaces(): array
{
return $this->namespaces;
}

/**
* Finds a component file based on its class namespace
*
Expand Down

0 comments on commit d00771d

Please sign in to comment.