Skip to content

Commit

Permalink
Merge pull request #253 from akeneo/API-1885-php-client-deprecate-old…
Browse files Browse the repository at this point in the history
…-asset-routes

API-1885: Deprecate unused routes
  • Loading branch information
LevFlavien authored Nov 3, 2022
2 parents d651cc6 + 5b51536 commit f8695d2
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/AkeneoPimClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,39 +331,41 @@ public function getProductDraftApi(): ProductDraftApiInterface
}

/**
* @return AssetApiInterface
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
* @see getAssetManagerApi instead.
*/
public function getAssetApi(): AssetApiInterface
{
return $this->assetApi;
}

/**
* {@inheritdoc}
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
* @see getAssetFamilyApi instead.
*/
public function getAssetCategoryApi(): AssetCategoryApiInterface
{
return $this->assetCategoryApi;
}

/**
* {@inheritdoc}
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
*/
public function getAssetTagApi(): AssetTagApiInterface
{
return $this->assetTagApi;
}

/**
* {@inheritdoc}
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
*/
public function getAssetReferenceFileApi(): AssetReferenceFileApiInterface
{
return $this->assetReferenceFileApi;
}

/**
* {@inheritdoc}
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
*/
public function getAssetVariationFileApi(): AssetVariationFileApiInterface
{
Expand Down
17 changes: 17 additions & 0 deletions src/AkeneoPimClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,31 @@ public function getProductModelDraftApi(): ProductModelDraftApiInterface;

public function getProductDraftApi(): ProductDraftApiInterface;

/**
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
* @see getAssetManagerApi instead.
*/
public function getAssetApi(): AssetApiInterface;

/**
* @deprecated Route unavailable in latest PIM versions. Will be removed in v12.0.0.
* @see getAssetFamilyApi instead.
*/
public function getAssetCategoryApi(): AssetCategoryApiInterface;

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

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

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

public function getReferenceEntityRecordApi(): ReferenceEntityRecordApiInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetApi instead.
*/
class AssetApi implements AssetApiInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetApiInterface instead.
*/
interface AssetApiInterface extends
GettableResourceInterface,
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetCategoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetFamilyApi instead.
*/
class AssetCategoryApi implements AssetCategoryApiInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetCategoryApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetFamilyApiInterface instead.
*/
interface AssetCategoryApiInterface extends
GettableResourceInterface,
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetReferenceFileApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetMediaFileApi instead.
*/
class AssetReferenceFileApi implements AssetReferenceFileApiInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Api/AssetReferenceFileApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
* @see \Akeneo\Pim\ApiClient\Api\AssetManager\AssetMediaFileApiInterface instead.
*/
interface AssetReferenceFileApiInterface
{
Expand Down
1 change: 1 addition & 0 deletions src/Api/AssetTagApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
*/
class AssetTagApi implements AssetTagApiInterface
{
Expand Down
1 change: 1 addition & 0 deletions src/Api/AssetTagApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
*/
interface AssetTagApiInterface extends GettableResourceInterface, ListableResourceInterface, UpsertableResourceInterface
{
Expand Down
1 change: 1 addition & 0 deletions src/Api/AssetVariationFileApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
*/
class AssetVariationFileApi implements AssetVariationFileApiInterface
{
Expand Down
1 change: 1 addition & 0 deletions src/Api/AssetVariationFileApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @author Laurent Petard <[email protected]>
* @copyright 2017 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @deprecated Route unavailable in latest PIM versions. Class will be removed in v12.0.0.
*/
interface AssetVariationFileApiInterface
{
Expand Down

0 comments on commit f8695d2

Please sign in to comment.