PhpBrew\Console::init PHP Метод

init() публичный Метод

public init ( )
    public function init()
    {
        parent::init();
        $this->command('app');
        $this->command('init');
        $this->command('known');
        $this->command('install');
        $this->command('list');
        $this->command('use');
        $this->command('switch');
        $this->command('each');
        $this->command('config');
        $this->command('info');
        $this->command('env');
        $this->command('extension');
        $this->command('variants');
        $this->command('path');
        $this->command('cd');
        $this->command('download');
        $this->command('clean');
        $this->command('update');
        $this->command('ctags');
        $this->command('help');
        $this->command('fpm');
        $this->command('list-ini', 'PhpBrew\\Command\\ListIniCommand');
        $this->command('self-update', 'PhpBrew\\Command\\SelfUpdateCommand');
        $this->command('remove');
        $this->command('purge');
        $this->command('off');
        $this->command('switch-off', 'PhpBrew\\Command\\SwitchOffCommand');
        $this->topics(array('contribution' => 'PhpBrew\\Topic\\ContributionTopic', 'cookbook' => 'PhpBrew\\Topic\\CookbookTopic', 'home' => 'PhpBrew\\Topic\\HomeTopic', 'migrating-from-homebrew-php-to-phpbrew' => 'PhpBrew\\Topic\\MigratingFromHomebrewPhpToPhpbrewTopic', 'phpbrew-ja' => 'PhpBrew\\Topic\\PHPBrewJATopic', 'release-process' => 'PhpBrew\\Topic\\ReleaseProcessTopic', 'requirement' => 'PhpBrew\\Topic\\RequirementTopic', 'setting-up-configuration' => 'PhpBrew\\Topic\\SettingUpConfigurationTopic', 'troubleshooting' => 'PhpBrew\\Topic\\TroubleshootingTopic'));
        $this->configure();
        // We use '#' as the prefix to prevent issue with bash
        if (!extension_loaded('json')) {
            $this->logger->warn('# WARNING: json extension is required for downloading release info.');
        }
        if (!extension_loaded('libxml')) {
            $this->logger->warn('# WARNING: libxml extension is required for parsing pecl package file.');
        }
        if (!extension_loaded('curl')) {
            $this->logger->warn('# WARNING: curl extension might be required for fetching data.');
        }
    }