diff --git a/app/src/Bootstrap.php b/app/src/Bootstrap.php index 9ce7cc5..4f90bb0 100644 --- a/app/src/Bootstrap.php +++ b/app/src/Bootstrap.php @@ -94,6 +94,12 @@ class Bootstrap }, ResponseFactoryInterface::class => function (ContainerInterface $container) { return new ResponseFactory(); + }, + UserRepositoryInterface::class => function (ContainerInterface $container) { + return new UserRepository( + $container->get(DatabaseConnectionInterface::class), + $container->get(UserAuthorizationInterface::class) + ); } ]); diff --git a/app/templates/user/register.twig b/app/templates/user/register.twig index 4fec4a9..013d423 100644 --- a/app/templates/user/register.twig +++ b/app/templates/user/register.twig @@ -16,8 +16,8 @@