protected function registerPreConfiguredApiClients()
    {
        $this->app->bindIf("nem", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $config  = $this->app["nem.config"];
            $nisConf = $config["nis"][$envConfig];
            $client  = new API($nisConf);

            return $client;
        }, true); // shared=true

        $this->app->bindIf("nem.ncc", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $config  = $this->app["nem.config"];
            $nccConf = $config["ncc"][$envConfig];
            $client  = new API($nccConf);

            return $client;
        }, true); // shared=true

        $this->app->bindIf("nem.sdk", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $api = $this->app["nem"];
            $sdk = new SDK([], $api); // use already initialized NIS API client

            return $sdk;
        }, true); // shared=true
    }
protected function registerPreConfiguredApiClients()
    {
        $this->app->bindIf("nem", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $config  = $this->app["nem.config"];
            $nisConf = $config["nis"][$envConfig];
            $client  = new API($nisConf);

            return $client;
        }, true); // shared=true

        $this->app->bindIf("nem.ncc", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $config  = $this->app["nem.config"];
            $nccConf = $config["ncc"][$envConfig];
            $client  = new API($nccConf);

            return $client;
        }, true); // shared=true

        $this->app->bindIf("nem.sdk", function()
        {
            $environment = env("APP_ENV", "testing");
            $envConfig   = $environment == "production" ? "primary" : "testing";

            $api = $this->app["nem"];
            $sdk = new SDK([], $api); // use already initialized NIS API client

            return $sdk;
        }, true); // shared=true
    }
protected function registerPreConfiguredApiClients ( ) { $ this -> app -> bindIf ( "nem" , function ( ) { $ environment = env ( "APP_ENV" , "testing" ) ; $ envConfig = $ environment == "production" ? "primary" : "testing" ; $ config = $ this -> app [ "nem.config" ] ; $ nisConf = $ config [ "nis" ] [ $ envConfig ] ; $ client = new API ( $ nisConf ) ; return $ client ; } , true ) ; // shared=true $ this -> app -> bindIf ( "nem.ncc" , function ( ) { $ environment = env ( "APP_ENV" , "testing" ) ; $ envConfig = $ environment == "production" ? "primary" : "testing" ; $ config = $ this -> app [ "nem.config" ] ; $ nccConf = $ config [ "ncc" ] [ $ envConfig ] ; $ client = new API ( $ nccConf ) ; return $ client ; } , true ) ; // shared=true $ this -> app -> bindIf ( "nem.sdk" , function ( ) { $ environment = env ( "APP_ENV" , "testing" ) ; $ envConfig = $ environment == "production" ? "primary" : "testing" ; $ api = $ this -> app [ "nem" ] ; $ sdk = new SDK ( [ ] , $ api ) ; // use already initialized NIS API client return $ sdk ; } , true ) ; // shared=true }
Register all pre-configured NEM API clients.

This will register following IoC bindings:
- nem : using the primary NIS server configuration
- nem.testing : using the testing NIS server configuration
- nem.ncc : using the primary NCC client configuration
- nem.ncc.testing : using the testing NCC client configuration
- nem.sdk : The SDK interface

All registered bindings will return an instance of
NEM\API.

@see  \NEM\API
@return void
Register all pre - configured NEM API clients .