From 57315e60afb1f26e83b2ee2eed2118c730508e01 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 21 Aug 2024 12:05:07 +1200 Subject: [PATCH] API Replace extension with config --- _config/config.yml | 4 +-- .../ElementalLeftAndMainExtension.php | 28 ------------------- 2 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 src/Extensions/ElementalLeftAndMainExtension.php diff --git a/_config/config.yml b/_config/config.yml index 79d8ecb3..27baa5f2 100644 --- a/_config/config.yml +++ b/_config/config.yml @@ -7,8 +7,8 @@ SilverStripe\Admin\LeftAndMain: - 'dnadesign/silverstripe-elemental:client/dist/js/bundle.js' extra_requirements_css: - 'dnadesign/silverstripe-elemental:client/dist/styles/bundle.css' - extensions: - - DNADesign\Elemental\Extensions\ElementalLeftAndMainExtension + extra_requirements_i18n: + - 'dnadesign/silverstripe-elemental:client/lang' SilverStripe\Admin\Forms\UsedOnTable: extensions: diff --git a/src/Extensions/ElementalLeftAndMainExtension.php b/src/Extensions/ElementalLeftAndMainExtension.php deleted file mode 100644 index a98c6fa3..00000000 --- a/src/Extensions/ElementalLeftAndMainExtension.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @deprecated 5.3.0 Will be replaced with YAML configuration - */ -class ElementalLeftAndMainExtension extends Extension -{ - public function __construct() - { - Deprecation::withNoReplacement( - fn () => Deprecation::notice('5.3.0', 'Will be replaced with YAML configuration', Deprecation::SCOPE_CLASS) - ); - parent::__construct(); - } - - public function init() - { - Requirements::add_i18n_javascript('dnadesign/silverstripe-elemental:client/lang'); - } -}