public static function getLoader()
{
$projectBasedir = __DIR__ . '/../../..';
if (!($loader = self::includeIfExists($projectBasedir . '/vendor/autoload.php')) && !($loader = self::includeIfExists($projectBasedir . '/../../autoload.php'))) {
throw new ErrorException('You must set up the project dependencies, run the following commands:' . PHP_EOL . 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . 'php composer.phar install' . PHP_EOL);
}
return $loader;
}