Skip to content

Commit 5b51536

Browse files
committed
refact(API-1885): Deprecate unused routes
1 parent d651cc6 commit 5b51536

12 files changed

+40
-5
lines changed

src/AkeneoPimClient.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,39 +331,41 @@ public function getProductDraftApi(): ProductDraftApiInterface
331331
}
332332

333333
/**
334-
* @return AssetApiInterface
334+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
335+
* @see getAssetManagerApi instead.
335336
*/
336337
public function getAssetApi(): AssetApiInterface
337338
{
338339
return $this->assetApi;
339340
}
340341

341342
/**
342-
* {@inheritdoc}
343+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
344+
* @see getAssetFamilyApi instead.
343345
*/
344346
public function getAssetCategoryApi(): AssetCategoryApiInterface
345347
{
346348
return $this->assetCategoryApi;
347349
}
348350

349351
/**
350-
* {@inheritdoc}
352+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
351353
*/
352354
public function getAssetTagApi(): AssetTagApiInterface
353355
{
354356
return $this->assetTagApi;
355357
}
356358

357359
/**
358-
* {@inheritdoc}
360+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
359361
*/
360362
public function getAssetReferenceFileApi(): AssetReferenceFileApiInterface
361363
{
362364
return $this->assetReferenceFileApi;
363365
}
364366

365367
/**
366-
* {@inheritdoc}
368+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
367369
*/
368370
public function getAssetVariationFileApi(): AssetVariationFileApiInterface
369371
{

src/AkeneoPimClientInterface.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,31 @@ public function getProductModelDraftApi(): ProductModelDraftApiInterface;
8989

9090
public function getProductDraftApi(): ProductDraftApiInterface;
9191

92+
/**
93+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
94+
* @see getAssetManagerApi instead.
95+
*/
9296
public function getAssetApi(): AssetApiInterface;
9397

98+
/**
99+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
100+
* @see getAssetFamilyApi instead.
101+
*/
94102
public function getAssetCategoryApi(): AssetCategoryApiInterface;
95103

104+
/**
105+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
106+
*/
96107
public function getAssetTagApi(): AssetTagApiInterface;
97108

109+
/**
110+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
111+
*/
98112
public function getAssetReferenceFileApi(): AssetReferenceFileApiInterface;
99113

114+
/**
115+
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
116+
*/
100117
public function getAssetVariationFileApi(): AssetVariationFileApiInterface;
101118

102119
public function getReferenceEntityRecordApi(): ReferenceEntityRecordApiInterface;

src/Api/AssetApi.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Laurent Petard <laurent.petard@akeneo.com>
1818
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1919
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
21+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetApi instead.
2022
*/
2123
class AssetApi implements AssetApiInterface
2224
{

src/Api/AssetApiInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* @author Laurent Petard <laurent.petard@akeneo.com>
1717
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1818
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
20+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetApiInterface instead.
1921
*/
2022
interface AssetApiInterface extends
2123
GettableResourceInterface,

src/Api/AssetCategoryApi.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Laurent Petard <laurent.petard@akeneo.com>
1818
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1919
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
21+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetFamilyApi instead.
2022
*/
2123
class AssetCategoryApi implements AssetCategoryApiInterface
2224
{

src/Api/AssetCategoryApiInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* @author Laurent Petard <laurent.petard@akeneo.com>
1717
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1818
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
20+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetFamilyApiInterface instead.
1921
*/
2022
interface AssetCategoryApiInterface extends
2123
GettableResourceInterface,

src/Api/AssetReferenceFileApi.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* @author Laurent Petard <laurent.petard@akeneo.com>
1616
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1717
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
19+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetMediaFileApi instead.
1820
*/
1921
class AssetReferenceFileApi implements AssetReferenceFileApiInterface
2022
{

src/Api/AssetReferenceFileApiInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* @author Laurent Petard <laurent.petard@akeneo.com>
1515
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1616
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
18+
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetMediaFileApiInterface instead.
1719
*/
1820
interface AssetReferenceFileApiInterface
1921
{

src/Api/AssetTagApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* @author Laurent Petard <laurent.petard@akeneo.com>
1717
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1818
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
1920
*/
2021
class AssetTagApi implements AssetTagApiInterface
2122
{

src/Api/AssetTagApiInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @author Laurent Petard <laurent.petard@akeneo.com>
1515
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
1616
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17+
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
1718
*/
1819
interface AssetTagApiInterface extends GettableResourceInterface, ListableResourceInterface, UpsertableResourceInterface
1920
{

0 commit comments

Comments
 (0)