public function __construct(RegistrarContract $router) { $this->router = $router; $this->setUpApiRouter(); $this->map(); }