
| Current Path : /var/www/html/rocksensor3/vendor/drush/drush/src/Preflight/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor3/vendor/drush/drush/src/Preflight/LegacyPreflight.php |
<?php
declare(strict_types=1);
namespace Drush\Preflight;
use Drush\Config\Environment;
use Drush\Drush;
use Symfony\Component\Filesystem\Path;
/**
* Prepare to bootstrap Drupal
*
* - Determine the site to use
* - Set up the DI container
* - Start the bootstrap process
*/
class LegacyPreflight
{
/**
* Include old code. It is an aspirational goal to remove or refactor
* all of this into more modular, class-based code.
*/
public static function includeCode($drushBasePath): void
{
// We still need preflight for drush_shutdown()
require_once $drushBasePath . '/includes/preflight.inc';
require_once $drushBasePath . '/includes/bootstrap.inc';
require_once $drushBasePath . '/includes/drush.inc';
require_once $drushBasePath . '/includes/batch.inc';
require_once $drushBasePath . '/includes/output.inc';
require_once $drushBasePath . '/includes/filesystem.inc';
require_once $drushBasePath . '/includes/legacy.inc';
}
}