Mercurial > hg > isophonics-drupal-site
view core/scripts/generate-proxy-class.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
#!/usr/bin/env php <?php /** * @file * A command line application to generate proxy classes. */ use Drupal\Core\Command\GenerateProxyClassApplication; use Drupal\Core\DrupalKernel; use Drupal\Core\ProxyBuilder\ProxyBuilder; use Drupal\Core\Site\Settings; use Symfony\Component\HttpFoundation\Request; if (PHP_SAPI !== 'cli') { return; } // Bootstrap. $autoloader = require __DIR__ . '/../../autoload.php'; require_once __DIR__ . '/../includes/bootstrap.inc'; $request = Request::createFromGlobals(); Settings::initialize(dirname(dirname(__DIR__)), DrupalKernel::findSitePath($request), $autoloader); $kernel = DrupalKernel::createFromRequest($request, $autoloader, 'prod')->boot(); // Run the database dump command. $application = new GenerateProxyClassApplication(new ProxyBuilder()); $application->run();