5 * Contains Drupal\Console\Core\Utils\DrupalFinder.
8 namespace Drupal\Console\Core\Utils;
10 use DrupalFinder\DrupalFinder as DrupalFinderBase;
15 * @package Drupal\Console\Core\Utils
17 class DrupalFinder extends DrupalFinderBase
19 public function locateRoot($start_path)
21 if (parent::locateRoot($start_path)) {
22 $composerRoot = $this->getComposerRoot();
23 $vendorDir = str_replace(
24 $composerRoot .'/', '', $this->getVendorDir()
26 if (!defined("DRUPAL_CONSOLE_CORE")) {
28 "DRUPAL_CONSOLE_CORE",
29 "/{$vendorDir}/drupal/console-core/"
32 if (!defined("DRUPAL_CONSOLE")) {
33 define("DRUPAL_CONSOLE", "/{$vendorDir}/drupal/console/");
35 if (!defined("DRUPAL_CONSOLE_LANGUAGE")) {
37 "DRUPAL_CONSOLE_LANGUAGE",
38 "/{$vendorDir}/drupal/console-%s/translations/"