Mercurial > hg > cmmr2012-drupal-site
annotate vendor/chi-teck/drupal-code-generator/src/bootstrap.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /** |
Chris@0 | 4 * @file |
Chris@0 | 5 * Globals. |
Chris@0 | 6 */ |
Chris@0 | 7 |
Chris@0 | 8 use DrupalCodeGenerator\ApplicationFactory; |
Chris@0 | 9 |
Chris@0 | 10 /** |
Chris@0 | 11 * DCG root. |
Chris@0 | 12 * |
Chris@0 | 13 * @deprecated |
Chris@0 | 14 * Use DrupalCodeGenerator\ApplicationFactory::getRoot |
Chris@0 | 15 */ |
Chris@0 | 16 define('DCG_ROOT', dirname(__DIR__)); |
Chris@0 | 17 |
Chris@0 | 18 /** |
Chris@0 | 19 * Creates an application. |
Chris@0 | 20 * |
Chris@0 | 21 * @return \Symfony\Component\Console\Application |
Chris@0 | 22 * The initialized console application. |
Chris@0 | 23 * |
Chris@0 | 24 * @deprecated |
Chris@0 | 25 * Use DrupalCodeGenerator\ApplicationFactory::create |
Chris@0 | 26 * |
Chris@0 | 27 * @codeCoverageIgnore |
Chris@0 | 28 */ |
Chris@0 | 29 function dcg_create_application() { |
Chris@0 | 30 return ApplicationFactory::create(); |
Chris@0 | 31 } |