app/Push/CreateModeFactory/ContainerCreateModeFactory.php
public function register( $modeName, CreateMode $createMode ) {
		if( empty($this->defaultMode) )
			$this->defaultMode = $modeName;

		$this->container[$modeName] = function() use ($createMode) {
			return $createMode;
		};
	}
public function register( $modeName, CreateMode $createMode ) {
		if( empty($this->defaultMode) )
			$this->defaultMode = $modeName;

		$this->container[$modeName] = function() use ($createMode) {
			return $createMode;
		};
	}
public function register ( $ modeName , CreateMode $ createMode ) { if ( empty ( $ this -> defaultMode ) ) $ this -> defaultMode = $ modeName ; $ this -> container [ $ modeName ] = function ( ) use ( $ createMode ) { return $ createMode ; } ; }
Register a createMode.
If no Mode is registered yet it will be used as the default mode

@param $modeName
@param CreateMode $createMode
Register a createMode . If no Mode is registered yet it will be used as the default mode