From fc1878196424ab913ca5f3550fc011ffdf694b97 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sun, 16 Jun 2024 21:55:44 -0400 Subject: [PATCH] Add the definitions for the Repository classes, need to use them in the bootstrap class. --- app/src/Bootstrap.php | 6 ++++++ app/templates/user/register.twig | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 @@
-