code: public function setApplication(Application $app)
      {
          $this
              ->setVariable('app', $app)
              ->setVariable('path_config', $app->pathConfig)
              ->setVariable('i18n', $app->i18n);
  
          try
          {
              $this->setVariable('db', $app->db);
          }
          catch (\Wedeto\DB\Exception\ConfigurationException $db)
          {}
          return $this;
      }
docs: Set the application instance
  @param Application $app The Application instance
  @return Dispatcher Provides fluent interface