Api\StarterKit\Providers\ApiStarterKitServiceProvider::register PHP Method

register() public method

Register the application services.
public register ( ) : void
return void
    public function register()
    {
        $this->registerProvider();
        // set api serializer
        if (config('api.transformer')) {
            $this->app['api.transformer']->getAdapter()->getFractal()->setSerializer(new ApiSerializer());
        }
    }