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

Slim 3.0 & setDefaultConditions

Paul Glass-Steel's Avatar

Paul Glass-Steel

16 Jun, 2015 07:42 PM

Is there an analog to setDefaultConditions in Slim 3.0? I've looked through source for both the framework core & Nikic/FastRoute, with no luck. Its pretty handy to validate a URL param, say, "user_id" as a positive integer, in one place, not on a per-route basis.


  1. 1 Posted by Ng Justin on 18 Feb, 2016 06:28 PM

    Ng Justin's Avatar

    +1 to this, Just started trying to upgrade and it's gone.

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