Add the definitions for the Repository classes, need to use them in the bootstrap class.
This commit is contained in:
parent
d8b21b8a85
commit
fc18781964
@ -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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user