Webiny\Component\Bootstrap\ApplicationClasses\Application::getNamespace PHP Метод

getNamespace() публичный Метод

Get application namespace.
public getNamespace ( ) : string
Результат string
    public function getNamespace()
    {
        return $this->environment->getApplicationConfig()->get('Namespace');
    }

Usage Example

Пример #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());
 }