Skip to content

Commit cc45b5a

Browse files
committed
+ add namespace example
Signed-off-by: Christoph Potas <[email protected]>
1 parent 609960d commit cc45b5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

user_guide_src/source/general/configuration.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ are public, so you access the settings like any other property::
2323
// Get shared instance with config function
2424
$config = config( 'EmailConfig' );
2525

26+
// Access config class with namespace
27+
$config = config( 'Config\\EmailConfig' );
28+
2629
// Access settings as class properties
2730
$protocol = $config->protocol;
2831
$mailpath = $config->mailpath;

0 commit comments

Comments
 (0)