コード例 #1
0
ファイル: Console.php プロジェクト: bensb/phpbrew
 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();
 }
コード例 #2
0
ファイル: Console.php プロジェクト: m-jch/phpbrew
 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();
 }
コード例 #3
0
ファイル: Console.php プロジェクト: azole/LazyRecord
 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');
 }
コード例 #4
0
ファイル: Console.php プロジェクト: corneltek/lazyrecord
 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');
 }
コード例 #5
0
ファイル: Application.php プロジェクト: arunahk/CLIFramework
 public function init()
 {
     parent::init();
     $this->command('foo');
     $this->command('add');
     $this->command('commit');
     $this->command('server');
     $this->topic('basic');
 }
コード例 #6
0
ファイル: Application.php プロジェクト: arunahk/CLIFramework
 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'));
 }
コード例 #7
0
ファイル: Console.php プロジェクト: corneltek/phifty
 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');
 }
コード例 #8
0
ファイル: Console.php プロジェクト: phpbrew/phpbrew
 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.');
     }
 }
コード例 #9
0
ファイル: Console.php プロジェクト: appleboy/Phifty
 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');
 }
コード例 #10
0
 public function init()
 {
     parent::init();
     $this->command('example');
     $this->command('self-update');
 }
コード例 #11
0
ファイル: Console.php プロジェクト: jbboehr/pux
 public function init()
 {
     parent::init();
     $this->registerCommand('compile');
 }
コード例 #12
0
ファイル: BenchmarkApp.php プロジェクト: Ronmi/benchkit
 public function init()
 {
     parent::init();
     $this->command('run', 'Fruit\\BenchKit\\Bin\\RunCommand');
 }
コード例 #13
0
ファイル: Application.php プロジェクト: ravenscroftj/GenPHP
 function options($opts)
 {
     parent::options($opts);
 }
コード例 #14
0
ファイル: cli.php プロジェクト: josephj/assetla
 public function init()
 {
     parent::init();
     $this->command('precompile', 'PrecompileCommand');
     $this->command('deploy', 'DeployCommand');
 }
コード例 #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);
 }
コード例 #16
0
ファイル: Console.php プロジェクト: Textalk/PHPRelease
 public function init()
 {
     parent::init();
     $this->addCommand('init');
 }