Closed tachyon-ops closed 8 years ago
So, with the help of @akrabat on #slimphp freenode channel I accomplished this making a setter in Slim's Routable.php;
/**
* Set the route pattern
*
* @set string
*/
public function setPattern($newPat)
{
$this->pattern = $newPat;
}
I suggest this to be implemented in the code.
User case:
i18n dynamic assignment through named routes. configuration driven urls ...
I'm not adverse to someone creating a PR for this.
Hi there,
How can I dynamically assign setPattern in Slim 3.x?