nette/nette — pull request #443 by JAM3SoN (2011-12-31 11:20:19+00:00)
Title: argsToParams access modifier changed to protected

I need to call argsToParams in my presenter descendant in order to normalize Presenter::link $args, which this commit allows.

Usage: I implemented annotation @secured to protect signals from CSRF(overrode link and signalRecieved methods). I am generating security token from user ID, signal name and signal arguments. In template I can pass arguments into link just by setting values (e.g. {plink dummySignal! $value}) or by specifying names ({plink dummySignal! 'param1' => $value}) and by this usage I am getting 2 different $args arrays(one regular, second associative) from which I calculate hash. By normalizing $args using argsToParams method I am allowed to use both variants. Otherwise hashes are different.

Reason I need to calculate hash from these values is to have it user/signal/arguments independent.