       @before_compile Phoenix.Endpoint
       @phoenix_render_errors var!(config)[:render_errors]
 
-      defoverridable [init: 1, call: 2]
+      # TODO remove when https://github.com/elixir-lang/plug/pull/450 is released
+      plug :satisfy_plug_builder
+      defp satisfy_plug_builder(conn, _opts), do: conn
     end
   end
 

        end
      end

      defp phoenix_pipeline(unquote(conn)), do: unquote(body)

      @doc """
      Returns all sockets configured in this endpoint.
      """


  defp plug() do
    quote location: :keep do
      use Plug.Builder
      import Phoenix.Endpoint

      Module.register_attribute(__MODULE__, :phoenix_sockets, accumulate: true)

      if force_ssl = Phoenix.Endpoint.__force_ssl__(__MODULE__, var!(config)) do
        plug Plug.SSL, force_ssl
      end

      if var!(config)[:debug_errors] do
