How Pass Params To Caction On Runtime Dynamicly


i want to pass X=>y to all Actions in system and i think is as mess if i put array(x=>y) to all actions call ,

so i want a way to pass array of params to action dynamicly for example in controller::beforeAction() and I need those params passed to all actions

i have found $action->runWithParams() and i think this is the solution but i couln’t do it

final note: i want to pass token to all actions params like Cpanel as Every Saw

I am Curious to know who can help me solve this problem??