diff --git a/src/Db/DbResolver.php b/src/Db/DbResolver.php index 011775a..69c141e 100644 --- a/src/Db/DbResolver.php +++ b/src/Db/DbResolver.php @@ -19,6 +19,9 @@ use Doctrine\DBAL\Connection; use Pimcore\Db; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class DbResolver implements DbResolverInterface { public function getConnection(): Connection diff --git a/src/Db/DbResolverInterface.php b/src/Db/DbResolverInterface.php index ea8da55..506b2a6 100644 --- a/src/Db/DbResolverInterface.php +++ b/src/Db/DbResolverInterface.php @@ -18,6 +18,9 @@ use Doctrine\DBAL\Connection; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DbResolverInterface { public function getConnection(): Connection; diff --git a/src/Lib/Cache/RuntimeCacheResolver.php b/src/Lib/Cache/RuntimeCacheResolver.php index c91dfab..a12ae61 100644 --- a/src/Lib/Cache/RuntimeCacheResolver.php +++ b/src/Lib/Cache/RuntimeCacheResolver.php @@ -18,6 +18,9 @@ use Pimcore\Cache\RuntimeCache; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class RuntimeCacheResolver implements RuntimeCacheResolverInterface { public function load(string $id): mixed diff --git a/src/Lib/Cache/RuntimeCacheResolverInterface.php b/src/Lib/Cache/RuntimeCacheResolverInterface.php index 81e10a6..6ff848a 100644 --- a/src/Lib/Cache/RuntimeCacheResolverInterface.php +++ b/src/Lib/Cache/RuntimeCacheResolverInterface.php @@ -16,6 +16,9 @@ namespace Pimcore\Bundle\StaticResolverBundle\Lib\Cache; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface RuntimeCacheResolverInterface { public function load(string $id): mixed; diff --git a/src/Lib/CacheResolver.php b/src/Lib/CacheResolver.php index 20b0600..76c4256 100644 --- a/src/Lib/CacheResolver.php +++ b/src/Lib/CacheResolver.php @@ -19,6 +19,9 @@ use DateInterval; use Pimcore\Cache; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class CacheResolver { public function save( diff --git a/src/Lib/ToolResolver.php b/src/Lib/ToolResolver.php index 2e74616..5e6fd10 100644 --- a/src/Lib/ToolResolver.php +++ b/src/Lib/ToolResolver.php @@ -19,6 +19,9 @@ use Exception; use Pimcore\Tool; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class ToolResolver implements ToolResolverInterface { public function getValidLanguages(): array diff --git a/src/Lib/ToolResolverInterface.php b/src/Lib/ToolResolverInterface.php index ea30577..765f117 100644 --- a/src/Lib/ToolResolverInterface.php +++ b/src/Lib/ToolResolverInterface.php @@ -16,6 +16,9 @@ namespace Pimcore\Bundle\StaticResolverBundle\Lib; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface ToolResolverInterface { public function getValidLanguages(): array; diff --git a/src/Lib/Tools/Authentication/AuthenticationResolver.php b/src/Lib/Tools/Authentication/AuthenticationResolver.php index 6641fd1..8bc1afb 100644 --- a/src/Lib/Tools/Authentication/AuthenticationResolver.php +++ b/src/Lib/Tools/Authentication/AuthenticationResolver.php @@ -20,6 +20,9 @@ use Pimcore\Tool\Authentication; use Symfony\Component\HttpFoundation\Request; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class AuthenticationResolver implements AuthenticationResolverInterface { public function authenticateSession(Request $request = null): ?User diff --git a/src/Lib/Tools/Authentication/AuthenticationResolverInterface.php b/src/Lib/Tools/Authentication/AuthenticationResolverInterface.php index eb2dc4a..77f5272 100644 --- a/src/Lib/Tools/Authentication/AuthenticationResolverInterface.php +++ b/src/Lib/Tools/Authentication/AuthenticationResolverInterface.php @@ -19,6 +19,9 @@ use Pimcore\Model\User; use Symfony\Component\HttpFoundation\Request; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface AuthenticationResolverInterface { public function authenticateSession(Request $request = null): ?User; diff --git a/src/Models/Asset/AssetResolverInterface.php b/src/Models/Asset/AssetResolverInterface.php index d24a4c0..4de5cd4 100644 --- a/src/Models/Asset/AssetResolverInterface.php +++ b/src/Models/Asset/AssetResolverInterface.php @@ -19,6 +19,9 @@ use Pimcore\Model\Asset; use Pimcore\Model\Asset\Listing; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface AssetResolverInterface { public function getById(int|string $id, array $params = []): ?Asset; diff --git a/src/Models/Asset/AssetServiceResolverInterface.php b/src/Models/Asset/AssetServiceResolverInterface.php index bd462ed..a941274 100644 --- a/src/Models/Asset/AssetServiceResolverInterface.php +++ b/src/Models/Asset/AssetServiceResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Asset\Folder; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface AssetServiceResolverInterface { public function createFolderByPath(string $path, array $options = []): Folder; diff --git a/src/Models/DataObject/ClassDefinitionResolver.php b/src/Models/DataObject/ClassDefinitionResolver.php index d150f0d..b70d5a1 100644 --- a/src/Models/DataObject/ClassDefinitionResolver.php +++ b/src/Models/DataObject/ClassDefinitionResolver.php @@ -19,6 +19,9 @@ use Exception; use Pimcore\Model\DataObject\ClassDefinition; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class ClassDefinitionResolver implements ClassDefinitionResolverInterface { /** diff --git a/src/Models/DataObject/ClassDefinitionResolverInterface.php b/src/Models/DataObject/ClassDefinitionResolverInterface.php index 217bbb7..209e039 100644 --- a/src/Models/DataObject/ClassDefinitionResolverInterface.php +++ b/src/Models/DataObject/ClassDefinitionResolverInterface.php @@ -19,6 +19,9 @@ use Exception; use Pimcore\Model\DataObject\ClassDefinition; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface ClassDefinitionResolverInterface { /** diff --git a/src/Models/DataObject/ClassificationStore/ServiceResolverInterface.php b/src/Models/DataObject/ClassificationStore/ServiceResolverInterface.php index 7d16b95..834dcbb 100644 --- a/src/Models/DataObject/ClassificationStore/ServiceResolverInterface.php +++ b/src/Models/DataObject/ClassificationStore/ServiceResolverInterface.php @@ -21,6 +21,9 @@ use Pimcore\Model\DataObject\Classificationstore\KeyConfig; use Pimcore\Model\DataObject\Classificationstore\KeyGroupRelation; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface ServiceResolverInterface { public function getFieldDefinitionFromKeyConfig( diff --git a/src/Models/DataObject/ConcreteObjectResolver.php b/src/Models/DataObject/ConcreteObjectResolver.php index 74c26b9..fe58472 100644 --- a/src/Models/DataObject/ConcreteObjectResolver.php +++ b/src/Models/DataObject/ConcreteObjectResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Concrete; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class ConcreteObjectResolver implements ConcreteObjectResolverInterface { public function getById(int $id, array $params = []): null|Concrete diff --git a/src/Models/DataObject/ConcreteObjectResolverInterface.php b/src/Models/DataObject/ConcreteObjectResolverInterface.php index 9d19800..7b6f870 100644 --- a/src/Models/DataObject/ConcreteObjectResolverInterface.php +++ b/src/Models/DataObject/ConcreteObjectResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Concrete; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface ConcreteObjectResolverInterface { public function getById(int $id, array $params = []): null|Concrete; diff --git a/src/Models/DataObject/DataObjectResolverInterface.php b/src/Models/DataObject/DataObjectResolverInterface.php index 2733a5a..f52cdc2 100644 --- a/src/Models/DataObject/DataObjectResolverInterface.php +++ b/src/Models/DataObject/DataObjectResolverInterface.php @@ -19,6 +19,9 @@ use Pimcore\Model\DataObject; use Pimcore\Model\DataObject\Listing; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DataObjectResolverInterface { public function getById(int|string $id, array $params = []): ?DataObject; diff --git a/src/Models/DataObject/DataObjectServiceResolverInterface.php b/src/Models/DataObject/DataObjectServiceResolverInterface.php index 810de26..9ae89a2 100644 --- a/src/Models/DataObject/DataObjectServiceResolverInterface.php +++ b/src/Models/DataObject/DataObjectServiceResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Folder; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DataObjectServiceResolverInterface { public function useInheritedValues( diff --git a/src/Models/DataObject/FieldCollection/DefinitionResolverInterface.php b/src/Models/DataObject/FieldCollection/DefinitionResolverInterface.php index 2202dbf..0a3f79b 100644 --- a/src/Models/DataObject/FieldCollection/DefinitionResolverInterface.php +++ b/src/Models/DataObject/FieldCollection/DefinitionResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Fieldcollection\Definition; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DefinitionResolverInterface { public function getByKey(string $key): ?Definition; diff --git a/src/Models/DataObject/Objectbrick/DefinitionResolver.php b/src/Models/DataObject/Objectbrick/DefinitionResolver.php index 889e4cb..41af204 100644 --- a/src/Models/DataObject/Objectbrick/DefinitionResolver.php +++ b/src/Models/DataObject/Objectbrick/DefinitionResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Objectbrick\Definition; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class DefinitionResolver implements DefinitionResolverInterface { public function getByKey(string $key): ?Definition diff --git a/src/Models/DataObject/Objectbrick/DefinitionResolverInterface.php b/src/Models/DataObject/Objectbrick/DefinitionResolverInterface.php index 4a7a6e4..75604c8 100644 --- a/src/Models/DataObject/Objectbrick/DefinitionResolverInterface.php +++ b/src/Models/DataObject/Objectbrick/DefinitionResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\Objectbrick\Definition; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DefinitionResolverInterface { public function getByKey(string $key): ?Definition; diff --git a/src/Models/DataObject/QuantityValue/UnitResolverInterface.php b/src/Models/DataObject/QuantityValue/UnitResolverInterface.php index 4b59fe3..13223ff 100644 --- a/src/Models/DataObject/QuantityValue/UnitResolverInterface.php +++ b/src/Models/DataObject/QuantityValue/UnitResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\DataObject\QuantityValue\Unit; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface UnitResolverInterface { public function getById(string $id): ?Unit; diff --git a/src/Models/Document/DocumentResolverInterface.php b/src/Models/Document/DocumentResolverInterface.php index d6a5252..a6d9fb3 100644 --- a/src/Models/Document/DocumentResolverInterface.php +++ b/src/Models/Document/DocumentResolverInterface.php @@ -19,6 +19,9 @@ use Pimcore\Model\Document; use Pimcore\Model\Document\Listing; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DocumentResolverInterface { public function getById(int|string $id, array $params = []): ?Document; diff --git a/src/Models/Document/DocumentServiceResolverInterface.php b/src/Models/Document/DocumentServiceResolverInterface.php index e9fb26d..d2cd7aa 100644 --- a/src/Models/Document/DocumentServiceResolverInterface.php +++ b/src/Models/Document/DocumentServiceResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Document\Folder; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DocumentServiceResolverInterface { public function createFolderByPath(string $path, array $options = []): Folder; diff --git a/src/Models/Element/ServiceResolver.php b/src/Models/Element/ServiceResolver.php index 9fc8b17..3e21216 100644 --- a/src/Models/Element/ServiceResolver.php +++ b/src/Models/Element/ServiceResolver.php @@ -23,6 +23,9 @@ use Pimcore\Model\Element\Service; use Pimcore\Model\User; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ final class ServiceResolver implements ServiceResolverInterface { public function getElementById(string $type, int|string $id, array $params = []): Asset|Document|AbstractObject|null diff --git a/src/Models/Element/ServiceResolverInterface.php b/src/Models/Element/ServiceResolverInterface.php index 0fb434c..84e3041 100644 --- a/src/Models/Element/ServiceResolverInterface.php +++ b/src/Models/Element/ServiceResolverInterface.php @@ -23,6 +23,9 @@ use Pimcore\Model\Element\ElementInterface; use Pimcore\Model\User; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface ServiceResolverInterface { public function getElementById( diff --git a/src/Models/Schedule/TaskResolver.php b/src/Models/Schedule/TaskResolver.php index 0781535..5fba211 100644 --- a/src/Models/Schedule/TaskResolver.php +++ b/src/Models/Schedule/TaskResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\Schedule\Task; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class TaskResolver implements TaskResolverInterface { public function getById(int $id): ?Task diff --git a/src/Models/Schedule/TaskResolverInterface.php b/src/Models/Schedule/TaskResolverInterface.php index 84f62a3..f2232d6 100644 --- a/src/Models/Schedule/TaskResolverInterface.php +++ b/src/Models/Schedule/TaskResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Schedule\Task; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface TaskResolverInterface { public function getById(int $id): ?Task; diff --git a/src/Models/Tool/SettingsStoreResolverInterface.php b/src/Models/Tool/SettingsStoreResolverInterface.php index d60d7f1..c1a379c 100644 --- a/src/Models/Tool/SettingsStoreResolverInterface.php +++ b/src/Models/Tool/SettingsStoreResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Tool\SettingsStore; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface SettingsStoreResolverInterface { public function set(string $id, float|bool|int|string $data, string $type = 'string', ?string $scope = null): bool; diff --git a/src/Models/Tool/TmpStoreResolver.php b/src/Models/Tool/TmpStoreResolver.php index ed23500..00fdf42 100644 --- a/src/Models/Tool/TmpStoreResolver.php +++ b/src/Models/Tool/TmpStoreResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\Tool\TmpStore; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ final class TmpStoreResolver implements TmpStoreResolverInterface { public function add(string $id, mixed $data, ?string $tag = null, ?int $lifetime = null): bool diff --git a/src/Models/Tool/TmpStoreResolverInterface.php b/src/Models/Tool/TmpStoreResolverInterface.php index cd7c7a0..f5a167c 100644 --- a/src/Models/Tool/TmpStoreResolverInterface.php +++ b/src/Models/Tool/TmpStoreResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Tool\TmpStore; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface TmpStoreResolverInterface { public function add(string $id, mixed $data, ?string $tag, ?int $lifetime): bool; diff --git a/src/Models/User/Permission/DefinitionResolverInterface.php b/src/Models/User/Permission/DefinitionResolverInterface.php index 3d70d9a..2636358 100644 --- a/src/Models/User/Permission/DefinitionResolverInterface.php +++ b/src/Models/User/Permission/DefinitionResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\User\Permission\Definition; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface DefinitionResolverInterface { public function getByKey(string $permission): ?Definition; diff --git a/src/Models/User/UserResolver.php b/src/Models/User/UserResolver.php index 1732a2e..efbd5ac 100644 --- a/src/Models/User/UserResolver.php +++ b/src/Models/User/UserResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\User; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class UserResolver implements UserResolverInterface { public function getById(int $id): ?User diff --git a/src/Models/User/UserResolverInterface.php b/src/Models/User/UserResolverInterface.php index a486dfa..12848db 100644 --- a/src/Models/User/UserResolverInterface.php +++ b/src/Models/User/UserResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\User; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface UserResolverInterface { public function getById(int $id): ?User; diff --git a/src/Models/Version/VersionResolver.php b/src/Models/Version/VersionResolver.php index 33e2bec..7f692b8 100644 --- a/src/Models/Version/VersionResolver.php +++ b/src/Models/Version/VersionResolver.php @@ -18,6 +18,9 @@ use Pimcore\Model\Version; +/** + * @deprecated Will be marked as internal and final in v2.0.0 + */ class VersionResolver implements VersionResolverInterface { public function enable(): void diff --git a/src/Models/Version/VersionResolverInterface.php b/src/Models/Version/VersionResolverInterface.php index f7d5a11..ef48f85 100644 --- a/src/Models/Version/VersionResolverInterface.php +++ b/src/Models/Version/VersionResolverInterface.php @@ -18,6 +18,9 @@ use Pimcore\Model\Version; +/** + * @deprecated Will be marked as internal in v2.0.0 + */ interface VersionResolverInterface { public function enable(): void;