notice('CustomerReadService::getCustomerById >> Fetched customer with ID = ' . $customerId->asInt()); return parent::getCustomerById($customerId); } /** * Overload the "registreeEmailExists" method. * * This method will now create a new debug log entry every time the method is used to check whether a customer * email already exists. * * @param CustomerEmailInterface $email * * @return bool */ public function registreeEmailExists(CustomerEmailInterface $email) { $logControl = LogControl::get_instance(); $logControl->notice('CustomerReadService::registreeEmailExists >> Checked if there is an existing customer with ' . 'email = ' . (string)$email); return parent::registreeEmailExists($email); } }