Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
コード例 #1
0
    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->setName('jarves:configuration:travis')->setDescription('Builds the database configuration for travis ci.')->addArgument('type', InputArgument::REQUIRED, 'database type: mysql|pgsql|sqlite')->addArgument('database-name', InputArgument::REQUIRED, 'database name')->addArgument('username', InputArgument::OPTIONAL, 'database login username')->addOption('pw', null, InputOption::VALUE_OPTIONAL)->addOption('server', null, InputOption::VALUE_OPTIONAL, 'hostname or ip. for SQLITE the path')->addOption('port', null, InputOption::VALUE_OPTIONAL)->setHelp('
You can set with this command configuration values inside the app/config/config.jarves.xml file.
');
    }
コード例 #2
0
ファイル: EntryPointsCommand.php プロジェクト: jarves/jarves
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:entrypoints')->setDescription('Shows all available entry points.');
 }
コード例 #3
0
ファイル: DemoDataCommand.php プロジェクト: jarves/jarves
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:install:demo')->setDescription('Installs demo data.')->addArgument('hostname', null, 'The hostname of the domain we should add. Example: 127.0.0.1')->addArgument('path', null, 'The path of the domain we should add. Example: /jarves-1.0/ or just /');
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:content:export')->setDescription('Exports content from nodes and files as a package in app/jarves you can commit in git and import again.');
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:convert-crud-to-yml')->addArgument('path', InputArgument::REQUIRED, 'file path')->setDescription('Converts a PHP class to a yml apiControllerDefinition');
 }
コード例 #6
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:content:import')->addOption('watch', null, InputOption::VALUE_NONE, "Watches for file changes and reimports")->setDescription('Imports website data from the package in app/jarves');
 }
コード例 #7
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:objects:export')->setDescription('Exports data from all objects or only one.')->addArgument('bundle', InputArgument::OPTIONAL, 'filter by bundle, short version name')->addArgument('object-key', InputArgument::OPTIONAL, 'filter by given object-key');
 }
コード例 #8
0
ファイル: FrontendCommand.php プロジェクト: jarves/jarves
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:frontend');
 }
コード例 #9
0
ファイル: ObjectsCommand.php プロジェクト: jarves/jarves
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('jarves:objects')->setDescription('Shows all available objects.')->addArgument('object-key', InputArgument::OPTIONAL, 'filter by given object-key');
 }