/** * Register routes with the router to controller services. * * @param Mapper $mapper */ public function addMapper(Mapper $mapper) { $mapper->registerMapping($this); }