Skip to content

Commit

Permalink
Recover from revert on objectService
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Nov 8, 2024
1 parent 07918db commit 149387a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use OCP\App\IAppManager;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\MultipleObjectsReturnedException;
use OCP\IURLGenerator;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Symfony\Component\Uid\Uuid;
Expand All @@ -34,6 +35,8 @@ class ObjectService
/** @var string $appName The name of the app */
private string $appName;

private ValidationService $validationService;

/**
* Constructor for ObjectService.
*
Expand All @@ -59,8 +62,11 @@ public function __construct(
private ContainerInterface $container,
private readonly IAppManager $appManager,
private readonly IAppConfig $config,
IURLGenerator $urlGenerator,
) {
$this->appName = 'opencatalogi';

$this->validationService = new ValidationService(objectService: $this, urlGenerator: $urlGenerator);
}

/**
Expand Down

0 comments on commit 149387a

Please sign in to comment.