text and registry are protected, thus, use an underscore in front of them.
Also, declare $_request.

Signed-off-by: Suki <suki@missallsunday.com>