public function __construct(ApplicationWrapperContract $app) { $this->app = $app; $this->javascriptFactory = new JavascriptFactory($this); }