Skip to content

Commit

Permalink
Adding @impl attributes to application modules (phoenixframework#4118)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos authored and cw committed Jun 23, 2021
1 parent 1af9ef5 commit aa95d75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer/templates/phx_single/lib/app_name/application.ex
Expand Up @@ -5,6 +5,7 @@ defmodule <%= @app_module %>.Application do

use Application

@impl true
def start(_type, _args) do
children = [<%= if @ecto do %>
# Start the Ecto repository
Expand All @@ -27,6 +28,7 @@ defmodule <%= @app_module %>.Application do

# Tell Phoenix to update the endpoint configuration
# whenever the application is updated.
@impl true
def config_change(changed, _new, removed) do
<%= @endpoint_module %>.config_change(changed, removed)
:ok
Expand Down
Expand Up @@ -5,6 +5,7 @@ defmodule <%= @app_module %>.Application do

use Application

@impl true
def start(_type, _args) do
children = [<%= if @ecto do %>
# Start the Ecto repository
Expand Down
Expand Up @@ -5,6 +5,7 @@ defmodule <%= @web_namespace %>.Application do

use Application

@impl true
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
Expand All @@ -23,6 +24,7 @@ defmodule <%= @web_namespace %>.Application do

# Tell Phoenix to update the endpoint configuration
# whenever the application is updated.
@impl true
def config_change(changed, _new, removed) do
<%= @endpoint_module %>.config_change(changed, removed)
:ok
Expand Down

0 comments on commit aa95d75

Please sign in to comment.