<?php
use Drupal\AppConsole\Console\Application;
use Drupal\Core\DrupalKernel;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
use Symfony\Component\Console\Helper\HelperSet;
use Drupal\AppConsole\Command\Helper\ShellHelper;
use Drupal\AppConsole\Console\Shell;
use Drupal\AppConsole\Command\GeneratorModuleCommand;
use Drupal\AppConsole\Command\GeneratorControllerCommand;
use Drupal\AppConsole\Command\GeneratorFormCommand;
use Drupal\AppConsole\Command\ServicesCommand;

set_time_limit(0);
require_once __DIR__ . '/../core/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('DRUPAL_ENV') ?: 'prod');
$debug = getenv('DRUPAL_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
if ($debug) {
    Debug::enable();
}

$kernel = new DrupalKernel($env, drupal_classloader(), !$debug);
$application = new Application($kernel);

$helperSet = new HelperSet();
$helperSet->set(new ShellHelper(new Shell($application)), 'shell');

$application->setHelperSet($helperSet);
$application->addCommands(array(
    new GeneratorModuleCommand(),
    new GeneratorControllerCommand(),
    new GeneratorFormCommand(),
    new ServicesCommand(),
));
$application->run($input);

<?php
use Drupal\AppConsole\Console\Application;
use Drupal\Core\DrupalKernel;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
use Symfony\Component\Console\Helper\HelperSet;
use Drupal\AppConsole\Command\Helper\ShellHelper;
use Drupal\AppConsole\Console\Shell;
use Drupal\AppConsole\Command\GeneratorModuleCommand;
use Drupal\AppConsole\Command\GeneratorControllerCommand;
use Drupal\AppConsole\Command\GeneratorFormCommand;
use Drupal\AppConsole\Command\ServicesCommand;

set_time_limit(0);
require_once __DIR__ . '/../../../../includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('DRUPAL_ENV') ?: 'prod');
$debug = getenv('DRUPAL_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
if ($debug) {
    Debug::enable();
}

$kernel = new DrupalKernel($env, drupal_classloader(), !$debug);
$application = new Application($kernel);

$helperSet = new HelperSet();
$helperSet->set(new ShellHelper(new Shell($application)), 'shell');

$application->setHelperSet($helperSet);
$application->addCommands(array(
    new GeneratorModuleCommand(),
    new GeneratorControllerCommand(),
    new GeneratorFormCommand(),
    new ServicesCommand(),
));
$application->run($input);

Fix wrong path to boostrap.inc
Fix wrong path to boostrap.inc
