Add the definitions for the Repository classes, need to use them in the bootstrap class.

This commit is contained in:
Dave Smith-Hayes 2024-06-16 21:55:44 -04:00
parent d8b21b8a85
commit fc18781964
2 changed files with 8 additions and 2 deletions

View File

@ -94,6 +94,12 @@ class Bootstrap
}, },
ResponseFactoryInterface::class => function (ContainerInterface $container) { ResponseFactoryInterface::class => function (ContainerInterface $container) {
return new ResponseFactory(); return new ResponseFactory();
},
UserRepositoryInterface::class => function (ContainerInterface $container) {
return new UserRepository(
$container->get(DatabaseConnectionInterface::class),
$container->get(UserAuthorizationInterface::class)
);
} }
]); ]);

View File

@ -16,8 +16,8 @@
<input name="password" type="password" required> <input name="password" type="password" required>
</div> </div>
<div> <div>
<label for="check_password">Confirm Password<br> <label for="checked_password">Confirm Password<br>
<input name="check_password" type="password" required> <input name="checked_password" type="password" required>
</div> </div>
<div> <div>
<input type="submit" label="Submit"> <input type="submit" label="Submit">