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) {
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>
</div>
<div>
<label for="check_password">Confirm Password<br>
<input name="check_password" type="password" required>
<label for="checked_password">Confirm Password<br>
<input name="checked_password" type="password" required>
</div>
<div>
<input type="submit" label="Submit">