Add init platform method.
This MR adds a method to initialize the platform. It duplicates some code that should be deprecated in the legacy version.
Edited by Marcos Huck
This MR adds a method to initialize the platform. It duplicates some code that should be deprecated in the legacy version.