src/Assets/AssetCatalogueProvider.php
public static function getAsset($token)
    {
        $key = self::getJwtKey();

        $payload = JWT::decode($token, $key, array('HS256'));

        $providerClass = $payload->provider;
        $category = $payload->category;
        $data = (array) $payload->data;

        $provider = new $providerClass($category);

        return new Asset($token, $provider, $data);
    }
public static function getAsset($token)
    {
        $key = self::getJwtKey();

        $payload = JWT::decode($token, $key, array('HS256'));

        $providerClass = $payload->provider;
        $category = $payload->category;
        $data = (array) $payload->data;

        $provider = new $providerClass($category);

        return new Asset($token, $provider, $data);
    }
public static function getAsset ( $ token ) { $ key = self :: getJwtKey ( ) ; $ payload = JWT :: decode ( $ token , $ key , array ( 'HS256' ) ) ; $ providerClass = $ payload -> provider ; $ category = $ payload -> category ; $ data = ( array ) $ payload -> data ; $ provider = new $ providerClass ( $ category ) ; return new Asset ( $ token , $ provider , $ data ) ; }
Recreates an asset from the data in the passed token.

@param $token
@return Asset
@throws AssetException
Recreates an asset from the data in the passed token .