-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used BaseCriterionProcessor from ibexa/rest
- Loading branch information
Showing
5 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
namespace Ibexa\AdminUi\REST\Input\Parser; | ||
|
||
use Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\BaseCriterionProcessor; | ||
|
||
/** | ||
* @phpstan-type TCriterionProcessor \Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\CriterionProcessorInterface< | ||
* \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion | ||
* > | ||
* | ||
* @extends \Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\BaseCriterionProcessor< | ||
* \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion | ||
* > | ||
* | ||
* @internal | ||
*/ | ||
final class CriterionProcessor extends BaseCriterionProcessor | ||
{ | ||
protected function getMediaTypePrefix(): string | ||
{ | ||
return 'application/vnd.ibexa.api.internal.criterion.'; | ||
} | ||
|
||
protected function getParserInvalidCriterionMessage(string $criterionName): string | ||
{ | ||
return "Invalid Criterion <$criterionName>"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters