Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 1b1bd91

Browse files
committed
add method that finds foundation namespace to finder
1 parent f752d05 commit 1b1bd91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Finder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ public function findRootNamespace()
4242
throw Exception('App namespace not set in composer.json');
4343
}
4444

45+
/**
46+
* Find the namespace of the foundation.
47+
*
48+
* @return string
49+
*/
50+
public function findFoundationNamespace()
51+
{
52+
return $this->findRootNamespace().'\Foundation';
53+
}
54+
4555
/**
4656
* Find the namespace for the given service name.
4757
*

0 commit comments

Comments
 (0)