protected function addWhereClausesToRoute(RouteContract $route): void
    {
        $where   = $route->getAction()['where'] ?? [];
        $pattern = \array_merge($this->patterns, $where);

        foreach ($pattern as $name => $value) {
            $route->where($name, $value);
        }
    }
protected function addWhereClausesToRoute(RouteContract $route): void
    {
        $where   = $route->getAction()['where'] ?? [];
        $pattern = \array_merge($this->patterns, $where);

        foreach ($pattern as $name => $value) {
            $route->where($name, $value);
        }
    }
protected function addWhereClausesToRoute ( RouteContract $ route ) : void { $ where = $ route -> getAction ( ) [ 'where' ] ?? [ ] ; $ pattern = \ array_merge ( $ this -> patterns , $ where ) ; foreach ( $ pattern as $ name => $ value ) { $ route -> where ( $ name , $ value ) ; } }
Add the necessary where clauses to the route based on its initial registration.

@param \Viserio\Component\Contract\Routing\Route $route

@return void
Add the necessary where clauses to the route based on its initial registration .