Skip to content

Commit

Permalink
Merge pull request #70 from nextcloud/fix/68/require-autoloader
Browse files Browse the repository at this point in the history
Move require autoloader to Application::register
  • Loading branch information
julien-nc authored Apr 16, 2024
2 parents ca6290e + dee02a1 commit 39f59bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function __construct(array $urlParams = []) {
}

public function register(IRegistrationContext $context): void {
require_once __DIR__ . '/../../vendor/autoload.php';

$context->registerCapability(Capabilities::class);

$context->registerReferenceProvider(Text2ImageReferenceProvider::class);
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/AssistantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace OCA\Assistant\Service;

require_once __DIR__ . '/../../vendor/autoload.php';

use Html2Text\Html2Text;
use OC\SpeechToText\TranscriptionJob;
use OCA\Assistant\AppInfo\Application;
Expand Down

0 comments on commit 39f59bb

Please sign in to comment.