Update BaseExtension.php