private static function _init()
	{
		//Set environment up for composer
		ini_set('memory_limit', '1024M');
		if (getenv('COMPOSER_HOME') != PATH_APP)
		{
			putenv('COMPOSER_HOME=' . PATH_APP);
		}
		if (getcwd() != PATH_APP)
		{
			chdir(PATH_APP);
		}
		// Assume no need for output from composer
		if (!self::$io)
		{
			self::$io = new NullIO();
		}

		// Set up a composer object
		if (!self::$factory)
		{
			self::$factory = new Factory();
		}

		if (!self::$composer)
		{
			self::$composer = self::$factory->createComposer(self::$io, PATH_APP . '/composer.json', false, PATH_APP, true);
		}
		return true;
	}
private static function _init()
	{
		//Set environment up for composer
		ini_set('memory_limit', '1024M');
		if (getenv('COMPOSER_HOME') != PATH_APP)
		{
			putenv('COMPOSER_HOME=' . PATH_APP);
		}
		if (getcwd() != PATH_APP)
		{
			chdir(PATH_APP);
		}
		// Assume no need for output from composer
		if (!self::$io)
		{
			self::$io = new NullIO();
		}

		// Set up a composer object
		if (!self::$factory)
		{
			self::$factory = new Factory();
		}

		if (!self::$composer)
		{
			self::$composer = self::$factory->createComposer(self::$io, PATH_APP . '/composer.json', false, PATH_APP, true);
		}
		return true;
	}
private static function _init ( ) { //Set environment up for composer ini_set ( 'memory_limit' , '1024M' ) ; if ( getenv ( 'COMPOSER_HOME' ) != PATH_APP ) { putenv ( 'COMPOSER_HOME=' . PATH_APP ) ; } if ( getcwd ( ) != PATH_APP ) { chdir ( PATH_APP ) ; } // Assume no need for output from composer if ( ! self :: $ io ) { self :: $ io = new NullIO ( ) ; } // Set up a composer object if ( ! self :: $ factory ) { self :: $ factory = new Factory ( ) ; } if ( ! self :: $ composer ) { self :: $ composer = self :: $ factory -> createComposer ( self :: $ io , PATH_APP . '/composer.json' , false , PATH_APP , true ) ; } return true ; }
Initialize a composer object and set the environment so composer can find its configuration
We currently assume PATH_APP for all composer operations

@return	void
Initialize a composer object and set the environment so composer can find its configuration We currently assume PATH_APP for all composer operations