AOEpeople/StackFormation

View on GitHub
src/AwsInspector/SdkFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AwsInspector;

/**
 * @deprecated
 */
class SdkFactory {

    /**
     * @param string $client
     * @return \Aws\AwsClientInterface
     * @throws \Exception
     * @deprecated
     */
    public static function getClient($client, $profile=null, array $args=[]) {
        static $profileManager;
        if (empty($profileManager)) {
            $profileManager = new \StackFormation\Profile\Manager();
        }
        return $profileManager->getClient($client, $profile, $args);
    }

}