add('

CategoryReadService overload is used!

This overload will create a new debug log entry whenever you perform a category-related operation (and the "getCategoryById" method of CategoryRead class is executed). Check the logs admin page for the new entries.

', 'info'); parent::__construct($categoryRepo, $categoryListProviderFactory); } /** * Overload the "getCategoryById" method. * * This method will now create a new debug log entry every time the method is used to fetch a category record from * the database. * * @param IdType $categoryId * * @return CategoryInterface */ public function getCategoryById(IdType $categoryId) { $log = LogControl::get_instance(); $log->notice('CategoryRead::getCategoryById >> Fetched category with ID = ' . $categoryId->asInt()); return parent::getCategoryById($categoryId); } }