Update BaseComponent.php