public static function loadFromPath($path)
	{
		// on test do not load plugins
		if(self::isUnableToRunPlugins())
		{
			return;
		}

		if (!file_exists($path))
		{
			throw new InvalidArgumentException("The path [{$path}] doesn't exist to load plugins.");
		}

		$plugins = require $path;

		foreach ($plugins as $plugin)
		{
			if (array_key_exists($plugin, self::$lookup))
			{
				$plugin = __DIR__ . DS . self::$lookup[$plugin];
			}

			if (file_exists($plugin))
			{
				require_once $plugin;
			}
		}

	}
public static function loadFromPath($path)
	{
		// on test do not load plugins
		if(self::isUnableToRunPlugins())
		{
			return;
		}

		if (!file_exists($path))
		{
			throw new InvalidArgumentException("The path [{$path}] doesn't exist to load plugins.");
		}

		$plugins = require $path;

		foreach ($plugins as $plugin)
		{
			if (array_key_exists($plugin, self::$lookup))
			{
				$plugin = __DIR__ . DS . self::$lookup[$plugin];
			}

			if (file_exists($plugin))
			{
				require_once $plugin;
			}
		}

	}
public static function loadFromPath ( $ path ) { // on test do not load plugins if ( self :: isUnableToRunPlugins ( ) ) { return ; } if ( ! file_exists ( $ path ) ) { throw new InvalidArgumentException ( "The path [{$path}] doesn't exist to load plugins." ) ; } $ plugins = require $ path ; foreach ( $ plugins as $ plugin ) { if ( array_key_exists ( $ plugin , self :: $ lookup ) ) { $ plugin = __DIR__ . DS . self :: $ lookup [ $ plugin ] ; } if ( file_exists ( $ plugin ) ) { require_once $ plugin ; } } }
Require plugins based on an array of paths

@param $path
Require plugins based on an array of paths