def plugin_before_dispatch(env)
      new_env = env

      self.plugins.each do |plugin|
        if plugin.respond_to? :before_dispatch
          new_env = plugin.send(:before_dispatch, self, env)
        end
      end

      new_env
    end
def plugin_before_dispatch(env)
      new_env = env

      self.plugins.each do |plugin|
        if plugin.respond_to? :before_dispatch
          new_env = plugin.send(:before_dispatch, self, env)
        end
      end

      new_env
    end
Runs before_dispatch in all plugins.

 @param env [Hash]
 @return [Hash]