The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

could we provide getPattern() for class Route?

Alfred's Avatar


03 Mar, 2016 04:45 PM

There are getXXX functions for Route class, but not getPattern.

I need that function (to generate an API list), so that I added `public function getPattern(){return $this->pattern;}` to the Route class and it works fine for my project.

I am afraid this may conflict with other functions in a complex project, since it's the only reason I can imaging to provide most others but not this attribute. So that, I haven't requested pull.

In case it was because of getPattern() is useless, I wish we could put it in. It could be useful for someone (me).

Thank you all for build such grate framework!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac