From 616585e0cc5ee6cb0991978064e6ab69dfa469a7 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Thu, 16 Jul 2015 13:21:18 +0200 Subject: [PATCH] spdxlicense extends spdxlicenses, add depr error --- src/Composer/Util/SpdxLicense.php | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/Composer/Util/SpdxLicense.php diff --git a/src/Composer/Util/SpdxLicense.php b/src/Composer/Util/SpdxLicense.php new file mode 100644 index 000000000..18217e105 --- /dev/null +++ b/src/Composer/Util/SpdxLicense.php @@ -0,0 +1,33 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Util; + +use Composer\Spdx\SpdxLicenses; + +/** + * Supports composer array and SPDX tag notation for disjunctive/conjunctive + * licenses. + * + * @author Tom Klingenberg + * + * @deprecated use Composer\Spdx\SpdxLicenses instead + */ +class SpdxLicense extends SpdxLicenses +{ + public function __construct() + { + parent::__construct(); + + trigger_error(__CLASS__ . ' is deprecated, use Composer\\Spdx\\SpdxLicenses instead', E_USER_DEPRECATED); + } +}