%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/phpro/grumphp/bin/ |
Upload File : |
#!/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);
})();