public function register($name, $class, array $params = array(), $callback = null) {
        unset($this->instances[$name]);

        $this->classes[$name] = array($class, $params, $callback);
    }
public function register($name, $class, array $params = array(), $callback = null) {
        unset($this->instances[$name]);

        $this->classes[$name] = array($class, $params, $callback);
    }
public function register ( $ name , $ class , array $ params = array ( ) , $ callback = null ) { unset ( $ this -> instances [ $ name ] ) ; $ this -> classes [ $ name ] = array ( $ class , $ params , $ callback ) ; }
Registers a class.

@param string $name Registry name
@param string|callable $class Class name or function to instantiate class
@param array $params Class initialization parameters
@param callback $callback Function to call after object instantiation
Registers a class .