public function create($name, $callback)
    {
        $this->_name = $name;
        $this->_class = $callback();

        $GLOBALS['providers'][$this->_name] = $this->_class;
    }
public function create($name, $callback)
    {
        $this->_name = $name;
        $this->_class = $callback();

        $GLOBALS['providers'][$this->_name] = $this->_class;
    }
public function create ( $ name , $ callback ) { $ this -> _name = $ name ; $ this -> _class = $ callback ( ) ; $ GLOBALS [ 'providers' ] [ $ this -> _name ] = $ this -> _class ; }
Creates the provider and registers the provider to the global area.

@param string   $name     - The name of the service provider
@param \Closure $callback - The callback for calling the provider's given class

@return void
Creates the provider and registers the provider to the global area .