Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Apr 12, 2024
1 parent f0d4db5 commit 721a50e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Controller/Api/Assets/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function __construct(
parent::__construct($serializer);
}

/**
* @throws InvalidQueryTypeException
*/
#[Route('/assets', name: 'pimcore_studio_api_assets', methods: ['GET'])]
//#[IsGranted('STUDIO_API')]
#[GET(
Expand Down
1 change: 1 addition & 0 deletions src/Filter/FilterInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down
3 changes: 2 additions & 1 deletion src/Service/GenericData/V1/QueryInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand All @@ -25,7 +26,7 @@ public function setPageSize(int $pageSize): self;

public function filterParentId(?int $parentId): self;

public function filterPath(string $path, bool $includeDescendants, bool $includeParent);
public function filterPath(string $path, bool $includeDescendants, bool $includeParent): self;

public function setSearchTerm(?string $term): self;

Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Service/Factory/QueryFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/**
* Pimcore
Expand Down

0 comments on commit 721a50e

Please sign in to comment.