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

view() public method

Get the view instance.
public view ( ) : View
return View
    public function view()
    {
        return $this->view;
    }

Usage Example

Example #1
0
 public function testView()
 {
     $env = Environment::getInstance();
     $env->initializeEnvironment(__DIR__ . '/../DemoApp/');
     $app = new Application($env);
     $this->assertInstanceOf('\\Webiny\\Component\\Bootstrap\\ApplicationClasses\\View', $app->view());
 }