- A lot of small important bugfixes
This commit is contained in:
1 parent
f72115aab4
commit
8892edd19e
8 files changed
+90
-8
No files matched your search
@@ -17,6 +17,8 @@ use Picea\Picea;
|
||||
|
||||
use TheBugs\Email\{ EmailConfiguration, MailerInterface, SwiftMailer };
|
||||
|
||||
use Taxus\Taxus;
|
||||
|
||||
return [
|
||||
Entity\User::class => autowire(Entity\User::class),
|
||||
|
||||
@@ -24,7 +26,7 @@ return [
|
||||
|
||||
SecurityHandler::class => create(SecurityHandler::class)->constructor(function() {
|
||||
return new RedirectResponse(getenv("URL_BASE")."/connexion");
|
||||
}, get('authentication.unauthorize')),
|
||||
}, get('authentication.unauthorize'), get(Taxus::class)),
|
||||
|
||||
'authentication.error' => function($c, Picea $picea) {
|
||||
return function($message) use ($picea) {
|
||||
@@ -59,4 +61,6 @@ return [
|
||||
|
||||
return $email;
|
||||
},
|
||||
|
||||
PermissionGrantInterface::class => create(%NAMESPACE%\PrivilegeGrantAccess::class)->constructor(get(ServerRequestInterface::class), get(Session::class)),
|
||||
];
|
||||
@@ -5,7 +5,9 @@ use Psr\Container\ContainerInterface;
|
||||
use Ulmus\ConnectionAdapter,
|
||||
Ulmus\Container\AdapterProxy;
|
||||
|
||||
use LdapRecord\Connection;
|
||||
use Storage\Session;
|
||||
|
||||
use function DI\autowire, DI\create, DI\get;
|
||||
|
||||
return [
|
||||
ConnectionAdapter::class => function($c) {
|
||||
@@ -21,5 +23,5 @@ return [
|
||||
return new AdapterProxy(
|
||||
$c->get(ConnectionAdapter::class)
|
||||
);
|
||||
}
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user