public function register($binding)
    {
        if ( ! extension_loaded('wxwidgets')) {
            if ( ! @dl('wxwidgets.'.PHP_SHLIB_SUFFIX)) {
                echo 'wxWidgets extension not installed or dynamically loaded extensions are not enabled'.PHP_EOL;
                exit(1);
            }
        }

        switch ($binding) {
            case 'view.viewparser':
                $this->registerViewParser();
            break;

            case 'wx':
                $this->registerWx();
            break;

            case 'launcher':
                $this->registerLauncher();
            break;

            case 'giml.collection':
                $this->registerGimlCollection();
            break;

            default: 
                $this->registerGimlCollection();
                $this->registerViewParser();
                $this->registerWx();
                $this->registerLauncher();
            break;
        }
    }
public function register($binding)
    {
        if ( ! extension_loaded('wxwidgets')) {
            if ( ! @dl('wxwidgets.'.PHP_SHLIB_SUFFIX)) {
                echo 'wxWidgets extension not installed or dynamically loaded extensions are not enabled'.PHP_EOL;
                exit(1);
            }
        }

        switch ($binding) {
            case 'view.viewparser':
                $this->registerViewParser();
            break;

            case 'wx':
                $this->registerWx();
            break;

            case 'launcher':
                $this->registerLauncher();
            break;

            case 'giml.collection':
                $this->registerGimlCollection();
            break;

            default: 
                $this->registerGimlCollection();
                $this->registerViewParser();
                $this->registerWx();
                $this->registerLauncher();
            break;
        }
    }
public function register ( $ binding ) { if ( ! extension_loaded ( 'wxwidgets' ) ) { if ( ! @ dl ( 'wxwidgets.' . PHP_SHLIB_SUFFIX ) ) { echo 'wxWidgets extension not installed or dynamically loaded extensions are not enabled' . PHP_EOL ; exit ( 1 ) ; } } switch ( $ binding ) { case 'view.viewparser' : $ this -> registerViewParser ( ) ; break ; case 'wx' : $ this -> registerWx ( ) ; break ; case 'launcher' : $ this -> registerLauncher ( ) ; break ; case 'giml.collection' : $ this -> registerGimlCollection ( ) ; break ; default : $ this -> registerGimlCollection ( ) ; $ this -> registerViewParser ( ) ; $ this -> registerWx ( ) ; $ this -> registerLauncher ( ) ; break ; } }
Register the specified binding into the container

@param  string $binding
@return void
Register the specified binding into the container