Skip to content

Commit

Permalink
Updated sample
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Apr 23, 2024
1 parent b3e903c commit a499517
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions samples/articles_crud_server/articles_crud_server.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ program articles_crud_server;
uses
System.SysUtils,
IdHTTPWebBrokerBridge,
{$IF Defined(USE_DB_LOGGER)}
{$IF Defined(USE_DB_LOGGER)}
CustomLoggerConfigU,
{$ENDIF}
{$ENDIF }
MVCFramework,
MVCFramework.Commons,
MVCFramework.Signal,
Expand All @@ -23,8 +23,6 @@ uses
Services in 'Services.pas',
BusinessObjects in 'BusinessObjects.pas',
Commons in 'Commons.pas',
MVCFramework.ActiveRecord in '..\..\sources\MVCFramework.ActiveRecord.pas',
MVCFramework.Serializer.JsonDataObjects in '..\..\sources\MVCFramework.Serializer.JsonDataObjects.pas',
FDConnectionConfigU in 'FDConnectionConfigU.pas';

{$R *.res}
Expand Down Expand Up @@ -64,18 +62,6 @@ begin
MVCFramework.Logger.SetDefaultLogger(CustomLoggerConfigU.GetLogger);
{$ENDIF}

dotEnvConfigure(
function: IMVCDotEnv
begin
Result := NewDotEnv
.UseStrategy(TMVCDotEnvPriority.FileThenEnv)
.UseLogger(procedure(LogItem: String)
begin
LogD('dotEnv: ' + LogItem);
end)
.Build(); //uses the executable folder to look for .env* files
end);

CreateFirebirdPrivateConnDef(True);
DefaultMVCServiceContainer
.RegisterType(TArticlesService, IArticlesService, TRegistrationType.SingletonPerRequest)
Expand Down

0 comments on commit a499517

Please sign in to comment.