Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / vendor / consolidation / robo / robo
1 #!/usr/bin/env php
2 <?php
3 /**
4  * if we're running from phar load the phar autoload,
5  * else let the script 'robo' search for the autoloader.
6  * If we cannot find a vendor/autoload.php file, then
7  * we will go ahead and try the phar.
8  */
9 $autoloaderPath = 'phar://robo.phar/vendor/autoload.php';
10 if (!strpos(basename(__FILE__), 'phar')) {
11     if (file_exists(__DIR__.'/vendor/autoload.php')) {
12         $autoloaderPath = __DIR__.'/vendor/autoload.php';
13     } elseif (file_exists(__DIR__.'/../../autoload.php')) {
14         $autoloaderPath = __DIR__ . '/../../autoload.php';
15     }
16 }
17 $classLoader = require $autoloaderPath;
18 $configFilePath = getenv('ROBO_CONFIG') ?: getenv('HOME') . '/.robo/robo.yml';
19 $runner = new \Robo\Runner();
20 $runner
21   ->setRelativePluginNamespace('Robo\Plugin')
22   ->setSelfUpdateRepository('consolidation/robo')
23   ->setConfigurationFilename($configFilePath)
24   ->setEnvConfigPrefix('ROBO')
25   ->setClassLoader($classLoader);
26 $statusCode = $runner->execute($_SERVER['argv']);
27 exit($statusCode);