ok
Direktori : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/bin/ |
Current File : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/bin/grumphp |
#!/usr/bin/env php <?php use GrumPHP\Configuration\ContainerFactory; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Output\ConsoleOutput; (function () { // First load current projects autoloader for smarter global / phar installs .... // A bit opinionated at the moment though: $autoloaderInWorkingDirectory = getcwd() . '/vendor/autoload.php'; if (is_file($autoloaderInWorkingDirectory)) { require_once $autoloaderInWorkingDirectory; } // Next load the GrumPHP autoloader $loaded = array_reduce( [ __DIR__.'/../vendor/autoload.php', // (Normal bin dir) __DIR__.'/../../../autoload.php', // From location inside folder __DIR__.'/../../vendor/autoload.php' // (Development integration) ], static function (?string $loaded, string $file): ?string { if ( ! $loaded && is_file($file)) { require_once($file); return $file; } return $loaded; } ); if (!$loaded) { fwrite( STDERR, '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 ); exit(1); } $container = ContainerFactory::build( $input = new ArgvInput(), $output = new ConsoleOutput() ); $application = $container->get('GrumPHP\Console\Application'); $application->run($input, $output); })();