public function register(Container $app)
    {
        $app["serializer.namingStrategy"] = "CamelCase";
        $app["serializer.namingStrategy.separator"] = "_";
        $app["serializer.namingStrategy.lowerCase"] = true;

        $app["serializer.propertyNamingStrategy"] = new PropertyNamingStrategyService();
        $app["serializer.builder"] = new BuilderService();
        $app["serializer"] = function (Container $app) {
            return $app["serializer.builder"]->build();
        };
    }
public function register(Container $app)
    {
        $app["serializer.namingStrategy"] = "CamelCase";
        $app["serializer.namingStrategy.separator"] = "_";
        $app["serializer.namingStrategy.lowerCase"] = true;

        $app["serializer.propertyNamingStrategy"] = new PropertyNamingStrategyService();
        $app["serializer.builder"] = new BuilderService();
        $app["serializer"] = function (Container $app) {
            return $app["serializer.builder"]->build();
        };
    }
public function register ( Container $ app ) { $ app [ "serializer.namingStrategy" ] = "CamelCase" ; $ app [ "serializer.namingStrategy.separator" ] = "_" ; $ app [ "serializer.namingStrategy.lowerCase" ] = true ; $ app [ "serializer.propertyNamingStrategy" ] = new PropertyNamingStrategyService ( ) ; $ app [ "serializer.builder" ] = new BuilderService ( ) ; $ app [ "serializer" ] = function ( Container $ app ) { return $ app [ "serializer.builder" ] -> build ( ) ; } ; }
Register the serializer and serializer.builder services

@param Container $app

@throws ServiceUnavailableHttpException
Register the serializer and serializer . builder services