Skip to content

Commit

Permalink
Added support for routeNotFoundUseDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Jan 31, 2023
1 parent fb55813 commit da9e3ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Config/WebpackOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class WebpackOptions extends AbstractOptions

protected $templates = [];

protected $routeNotFoundUseDefault = false;

public function setRoutes($routes)
{
$this->routes = $routes;
Expand Down Expand Up @@ -72,6 +74,10 @@ public function setTemplates($templates)
$this->templates = $templates;
}

public function setRouteNotFoundUseDefault(bool $flag)
{
$this->routeNotFoundUseDefault = $flag;
}
/**
* @param $routeMatched string
* @return array
Expand Down Expand Up @@ -114,4 +120,9 @@ public function getScriptListByTemplate($template)
}
return [];
}
}

public function getRouteNotFoundUseDefault(): bool
{
return $this->routeNotFoundUseDefault;
}
}

0 comments on commit da9e3ea

Please sign in to comment.