Update composer usage

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2023-01-21 10:44:13 -03:00
parent b1d248eff9
commit 86da2b4883
2 changed files with 5 additions and 1 deletions

5
composer/autoload.php Normal file
View file

@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';

View file

@ -35,7 +35,6 @@ class Application extends App implements IBootstrap {
}
public function register(IRegistrationContext $context): void {
include_once __DIR__ . '/../../vendor/autoload.php';
$context->registerEventListener(LoadSidebar::class, LoadSidebarListener::class);
$context->registerEventListener(BeforeNodeDeletedEvent::class, BeforeNodeDeletedListener::class);
$context->registerEventListener(SignedEvent::class, SignedListener::class);