Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->registerCommand('init');
     $this->registerCommand('known');
     $this->registerCommand('install');
     $this->registerCommand('list');
     $this->registerCommand('use');
     $this->registerCommand('switch');
     $this->registerCommand('each');
     $this->registerCommand('config');
     $this->registerCommand('info');
     $this->registerCommand('env');
     $this->registerCommand('ext');
     $this->registerCommand('variants');
     $this->registerCommand('path');
     $this->registerCommand('cd');
     $this->registerCommand('download');
     $this->registerCommand('clean');
     $this->registerCommand('ctags', 'PhpBrew\\Command\\CtagsCommand');
     $this->registerCommand('enable', 'PhpBrew\\Command\\MigratedCommand');
     $this->registerCommand('install-ext', 'PhpBrew\\Command\\MigratedCommand');
     $this->registerCommand('self-update', 'PhpBrew\\Command\\SelfUpdateCommand');
     $this->registerCommand('remove');
     $this->registerCommand('purge');
     $this->registerCommand('off');
     $this->registerCommand('switch-off', 'PhpBrew\\Command\\SwitchOffCommand');
     $this->configure();
 }
Ejemplo n.º 2
0
 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('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();
 }
Ejemplo n.º 3
0
 public function init()
 {
     parent::init();
     /**
      * Command for initialize related file structure
      */
     $this->command('init', 'LazyRecord\\Command\\InitCommand');
     /**
      * Command for building config file.
      */
     $this->command('build-conf', 'LazyRecord\\Command\\BuildConfCommand');
     $this->command('conf', 'LazyRecord\\Command\\BuildConfCommand');
     /**
      * schema command.
      */
     $this->command('schema');
     // the schema command builds all schema files and shows a diff after building new schema
     // XXX: move list to the subcommand of schema command, eg:
     //    $ lazy schema list
     //    $ lazy schema build
     //
     $this->command('list-schema', 'LazyRecord\\Command\\ListSchemaCommand');
     $this->command('build-schema', 'LazyRecord\\Command\\BuildSchemaCommand');
     $this->command('clean-schema', 'LazyRecord\\Command\\CleanSchemaCommand');
     $this->command('build-basedata', 'LazyRecord\\Command\\BuildBaseDataCommand');
     $this->command('sql', 'LazyRecord\\Command\\BuildSqlCommand');
     $this->command('diff');
     $this->command('migrate');
     $this->command('meta');
     $this->command('version');
     $this->command('create-db', 'LazyRecord\\Command\\CreateDBCommand');
 }
Ejemplo n.º 4
0
 public function init()
 {
     parent::init();
     /*
      * Command for initialize related file structure
      */
     $this->command('init');
     /*
      * Command for building config file.
      */
     $this->command('build-conf', 'LazyRecord\\Command\\BuildConfCommand');
     $this->command('conf', 'LazyRecord\\Command\\BuildConfCommand');
     $this->command('init-conf', 'LazyRecord\\Command\\InitConfCommand');
     $this->command('schema');
     // the schema command builds all schema files and shows a diff after building new schema
     $this->command('basedata');
     $this->command('sql');
     $this->command('diff');
     $this->command('migrate');
     $this->command('meta');
     $this->command('version');
     $this->command('db');
     $this->command('data-source');
     $this->command('table');
     $this->command('index');
 }
Ejemplo n.º 5
0
 public function init()
 {
     parent::init();
     $this->command('foo');
     $this->command('add');
     $this->command('commit');
     $this->command('server');
     $this->topic('basic');
 }
Ejemplo n.º 6
0
 public function init()
 {
     parent::init();
     // $this->addCommand('list');
     // $this->addCommand('test1');
     $this->CommandGroup('Daily Basic', array('list', 'test1'));
     $this->topic('list');
     $this->topics(array('setup', 'install'));
 }
Ejemplo n.º 7
0
 public function init()
 {
     parent::init();
     $this->command('init');
     $this->command('bootstrap');
     $this->command('export');
     $this->command('locale');
     $this->command('console');
     $this->command('server');
     $this->command('router');
     $this->command('asset');
     $this->command('bundle');
     $this->command('composer-config');
     $this->command('server-config');
     $this->command('new', 'Phifty\\Command\\GenerateCommand');
     $this->command('migration-check', 'Phifty\\Command\\MigrationCheckCommand');
     $this->command('check');
     $this->command('cache:clean', 'Phifty\\Command\\CacheCleanCommand');
 }
Ejemplo n.º 8
0
 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.');
     }
 }
Ejemplo n.º 9
0
 public function init()
 {
     parent::init();
     $this->command('init');
     $this->command('create');
     $this->command('build-conf');
     $this->command('build');
     $this->command('export');
     $this->command('locale');
     $this->command('console');
     $this->command('server');
     $this->command('router');
     $this->command('asset');
     $this->command('composer:config', 'Phifty\\Command\\ComposerConfigCommand');
     $this->command('new', 'Phifty\\Command\\GenerateCommand');
     $this->command('migration-check', 'Phifty\\Command\\MigrationCheckCommand');
     $this->command('check');
     $this->command('cache:clean', 'Phifty\\Command\\CacheCleanCommand');
     $this->command('build-schema', 'LazyRecord\\Command\\BuildSchemaCommand');
     $this->command('build-sql', 'LazyRecord\\Command\\BuildSqlCommand');
 }
Ejemplo n.º 10
0
 public function init()
 {
     parent::init();
     $this->command('example');
     $this->command('self-update');
 }
Ejemplo n.º 11
0
 public function init()
 {
     parent::init();
     $this->registerCommand('compile');
 }
Ejemplo n.º 12
0
 public function init()
 {
     parent::init();
     $this->command('run', 'Fruit\\BenchKit\\Bin\\RunCommand');
 }
Ejemplo n.º 13
0
 function options($opts)
 {
     parent::options($opts);
 }
Ejemplo n.º 14
0
 public function init()
 {
     parent::init();
     $this->command('precompile', 'PrecompileCommand');
     $this->command('deploy', 'DeployCommand');
 }
Ejemplo n.º 15
0
 /**
  * test register commands
  */
 public function testRegisterCommands()
 {
     // create container
     $container = new Container();
     // create service
     $container->set('test.command', new Command('test:command'));
     // set service id as parameter
     $container->setParameter('app.command.ids', array('test.command'));
     // changer kernel container
     $reflectionClass = new \ReflectionClass($this->kernel);
     $reflectionProperty = $reflectionClass->getProperty('container');
     $reflectionProperty->setAccessible(true);
     $reflectionProperty->setValue($this->kernel, $container);
     // create application
     $application = new Application($this->kernel);
     // create input & output
     $input = new \Symfony\Component\Console\Input\ArrayInput(array('command' => 'list'));
     $output = new \Symfony\Component\Console\Output\BufferedOutput();
     // run command
     $code = $application->doRun($input, $output);
     // assert
     $this->assertEquals(0, $code);
 }
Ejemplo n.º 16
0
 public function init()
 {
     parent::init();
     $this->addCommand('init');
 }