X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FBreakpoints%2FDebugCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FBreakpoints%2FDebugCommand.php;h=0000000000000000000000000000000000000000;hp=bbdbe86bd2490a005168c7aba3ae12f89e4c8404;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console/src/Command/Breakpoints/DebugCommand.php b/vendor/drupal/console/src/Command/Breakpoints/DebugCommand.php deleted file mode 100644 index bbdbe86bd..000000000 --- a/vendor/drupal/console/src/Command/Breakpoints/DebugCommand.php +++ /dev/null @@ -1,122 +0,0 @@ -breakpointManager = $breakpointManager; - $this->appRoot = $appRoot; - parent::__construct(); - } - - /** - * {@inheritdoc} - */ - protected function configure() - { - $this - ->setName('breakpoints:debug') - ->setDescription($this->trans('commands.breakpoints.debug.description')) - ->addArgument( - 'group', - InputArgument::OPTIONAL, - $this->trans('commands.breakpoints.debug.options.group-name') - ); - } - - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) - { - $io = new DrupalStyle($input, $output); - - $group = $input->getArgument('group'); - if ($group) { - $breakPointData = $this->getBreakpointByName($group); - foreach ($breakPointData as $key => $breakPoint) { - $io->comment($key, false); - $io->block(Yaml::dump($breakPoint)); - } - - return 0; - } - $groups = array_keys($this->breakpointManager->getGroups()); - - $tableHeader = [ - $this->trans('commands.breakpoints.debug.messages.name'), - ]; - - $io->table($tableHeader, $groups, 'compact'); - - return 0; - } - - /** - * @param $group String - * @return mixed - */ - private function getBreakpointByName($group) - { - $typeExtension = implode( - ',', - array_values($this->breakpointManager->getGroupProviders($group)) - ); - - $projectPath = drupal_get_path($typeExtension, $group); - - $extensionFile = sprintf( - '%s/%s/%s.breakpoints.yml', - $this->appRoot, - $projectPath, - $group - ); - - return Yaml::parse( - file_get_contents($extensionFile) - ); - } -}