src/Factory.php
public static function prepare($instance_identifier, $parameters = null) {
		$args = func_get_args();
		
		// get instance name in params string
		$params		= explode(':', $instance_identifier);
		$classname	= $params[0];
		
		// we always have to create a fully namespaced class path
		if ($classname{0} !== '\\') {
			$classname = '\\Morrow\\' . $classname;
		}

		// use the instancename or the last part of the classname for saving the args
		$instancename = (isset($params[1])) ? $params[1] : '_morrow_default';
		
		// save params for later
		self::$_params[$classname][$instancename] = [
			'classname'	=> $classname,
			'args'		=> array_slice($args, 1),
		];
	}
public static function prepare($instance_identifier, $parameters = null) {
		$args = func_get_args();
		
		// get instance name in params string
		$params		= explode(':', $instance_identifier);
		$classname	= $params[0];
		
		// we always have to create a fully namespaced class path
		if ($classname{0} !== '\\') {
			$classname = '\\Morrow\\' . $classname;
		}

		// use the instancename or the last part of the classname for saving the args
		$instancename = (isset($params[1])) ? $params[1] : '_morrow_default';
		
		// save params for later
		self::$_params[$classname][$instancename] = [
			'classname'	=> $classname,
			'args'		=> array_slice($args, 1),
		];
	}
public static function prepare ( $ instance_identifier , $ parameters = null ) { $ args = func_get_args ( ) ; // get instance name in params string $ params = explode ( ':' , $ instance_identifier ) ; $ classname = $ params [ 0 ] ; // we always have to create a fully namespaced class path if ( $ classname { 0 } !== '\\' ) { $ classname = '\\Morrow\\' . $ classname ; } // use the instancename or the last part of the classname for saving the args $ instancename = ( isset ( $ params [ 1 ] ) ) ? $ params [ 1 ] : '_morrow_default' ; // save params for later self :: $ _params [ $ classname ] [ $ instancename ] = [ 'classname' => $ classname , 'args' => array_slice ( $ args , 1 ) , ] ; }
Handles the preparation of class instantiation by deposit the constructor parameters. That allows the lazy loading functionality.

@param	string	$instance_identifier The instance identifier.
@param	mixed	$parameters Any number of constructor parameters.
@return	null
Handles the preparation of class instantiation by deposit the constructor parameters . That allows the lazy loading functionality .