Webiny\Component\Bootstrap\ApplicationClasses\Application::getNamespace PHP Method

getNamespace() public method

Get application namespace.
public getNamespace ( ) : string
return string
    public function getNamespace()
    {
        return $this->environment->getApplicationConfig()->get('Namespace');
    }

Usage Example

Beispiel #1
0
 public function testGetNamespace()
 {
     $env = Environment::getInstance();
     $env->initializeEnvironment(__DIR__ . '/../DemoApp/');
     $app = new Application($env);
     $this->assertSame('Webiny\\Component\\Bootstrap\\Tests\\DemoApp', $app->getNamespace());
 }