mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
22 lines
461 B
ObjectPascal
22 lines
461 B
ObjectPascal
unit Services.RegistrationU;
|
|
|
|
interface
|
|
|
|
uses
|
|
MVCFramework.Container;
|
|
|
|
procedure RegisterServices(Container: IMVCServiceContainer);
|
|
|
|
implementation
|
|
|
|
uses
|
|
Services.PeopleU, Services.InterfacesU, Services.ConnectionU;
|
|
|
|
procedure RegisterServices(Container: IMVCServiceContainer);
|
|
begin
|
|
Container.RegisterType(TPeopleService, IPeopleService);
|
|
Container.RegisterType(TConnectionService, IConnectionService, TRegistrationType.SingletonPerRequest)
|
|
end;
|
|
|
|
end.
|