Dynamically instantiated controller actions in Slim Framework