<commit_before><?php
/**
 * @file
 * Contains \Drupal\AppConsole\Command\SelfUpdateCommand.
 */

namespace Drupal\AppConsole\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;

class SelfUpdateCommand extends ContainerAwareCommand
{
    const DRUPAL_CONSOLE_MANIFEST = "http://drupalconsole.com/manifest.json";

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this
          ->setName('self-update')
          ->setDescription($this->trans('commands.self-update.description'))
          ->setHelp($this->trans('commands.self-update.help'));
    }

    /**
     * {@inheritdoc}
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $manager = new Manager(Manifest::loadFile(
          self::DRUPAL_CONSOLE_MANIFEST
        ));
        $manager->update($this->getApplication()->getVersion(), true);
        $output->writeln($this->trans('commands.self-update.messages.success'));
    }<commit_msg>#615 Update SelfUpdateCommand extend class from Command and not ContainerAwareCommand<commit_after><?php
/**
 * @file
 * Contains \Drupal\AppConsole\Command\SelfUpdateCommand.
 */

namespace Drupal\AppConsole\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;

class SelfUpdateCommand extends Command
{
    const DRUPAL_CONSOLE_MANIFEST = "http://drupalconsole.com/manifest.json";

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this
          ->setName('self-update')
          ->setDescription($this->trans('commands.self-update.description'))
          ->setHelp($this->trans('commands.self-update.help'));
    }

    /**
     * {@inheritdoc}
     */
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $manager = new Manager(Manifest::loadFile(
          self::DRUPAL_CONSOLE_MANIFEST
        ));
        $manager->update($this->getApplication()->getVersion(), true);
        $output->writeln($this->trans('commands.self-update.messages.success'));
    }
{'fraction_non_alphanumeric': 0.14054290718038528, 'fraction_numerical': 0.0013134851138353765, 'mean_word_length': 3.3606870229007635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6794761', 'n_tokens_mistral': 657, 'n_tokens_neox': 655, 'n_words': 95}