JeroenDeDauw / ParamProcessor

Declarative parameter processing library
https://entropywins.wtf
Other
20 stars 4 forks source link

Move `getTypeMessage` out of the ParamProcessor #17

Open kghbln opened 8 years ago

kghbln commented 8 years ago

See https://github.com/JeroenDeDauw/Validator/issues/15#issuecomment-229033012

The line in question: L374/src/ParamDefinition.php#L374

The keys are constructed in ParamProcessor, method getTypeMessage in https://github.com/JeroenDeDauw/ParamProcessor/blob/master/src/ParamDefinition.php. That stuff ought to be moved out of that component... though it might be easier to move the messages there. Not as correct, but solves half of the design issues.