示例#1
0
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'dm';
     $this->name = 'upgrade';
     $this->briefDescription = 'Safely upgrade a project to the current Diem version. Can be run several times without side effect.';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'typo-check';
     $this->briefDescription = 'Typo checker';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'migrate-geshi-code';
     $this->briefDescription = '<code:php> -> [code php]';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'open-package';
     $this->briefDescription = 'Builds a package of the project and save it in the upload dir';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'move-snippet-page';
     $this->briefDescription = '-';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'migrate-to-i18n';
     $this->briefDescription = 'Handle the ALPHA6 compatibility break';
     $this->detailedDescription = $this->briefDescription;
 }
示例#7
0
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'dm';
     $this->name = 'sync-pages';
     $this->briefDescription = 'Synchronize pages according to modules and records.';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->namespace = 'my';
     $this->name = 'fix-helpers';
     $this->briefDescription = 'Replace £ based helpers';
     $this->detailedDescription = $this->briefDescription;
 }
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->addOptions(array(new sfCommandOption('tag', null, sfCommandOption::PARAMETER_OPTIONAL, 'add a tag name to the backups file name', '')));
     $this->namespace = 'dm';
     $this->name = 'sql-backup';
     $this->briefDescription = 'Creates a sql backup';
     $this->detailedDescription = $this->briefDescription;
 }
示例#10
0
 /**
  * @see sfTask
  */
 protected function configure()
 {
     parent::configure();
     $this->addArguments(array(new sfCommandArgument('domain', sfCommandArgument::REQUIRED, 'The domain name (ie. http://www.my-domain.com)')));
     $this->namespace = 'dm';
     $this->name = 'sitemap-update';
     $this->briefDescription = 'Update sitemap';
     $this->detailedDescription = $this->briefDescription;
 }
示例#11
0
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'dm';
        $this->name = 'data';
        $this->briefDescription = 'Ensure required data';
        $this->detailedDescription = <<<EOF
Will provide Diem required data
EOF;
    }
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'dm';
        $this->name = 'generate-permissions-fixtures';
        $this->briefDescription = 'Generates DmPermission fixtures for securized admin modules';
        $this->detailedDescription = <<<EOF
Will create DmPermission fixtures files for securized admin modules
EOF;
    }
 public function configure()
 {
     parent::configure();
     $this->addOptions(array(new sfCommandOption('all', null, sfCommandOption::PARAMETER_NONE, 'Re-generate for all modules')));
     $this->addArgument('module', sfCommandArgument::OPTIONAL, 'Module key', null);
     $this->aliases = array();
     $this->namespace = 'dmAdmin';
     $this->name = 'secure-module';
     $this->briefDescription = 'Generates a security.yml for module using modules.yml definition';
 }
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'dm';
        $this->name = 'drop-tables';
        $this->briefDescription = 'Drop all the tables of the Db';
        $this->detailedDescription = <<<EOF
Will delete all the tables in the database
EOF;
    }
示例#15
0
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->aliases = array('ccc');
        $this->namespace = 'dm';
        $this->name = 'clear-cache';
        $this->briefDescription = 'Remove all cache dir content';
        $this->detailedDescription = <<<EOF
Will remove all cache dir content
EOF;
    }
示例#16
0
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->addOptions(array(new sfCommandOption('module', null, sfCommandOption::PARAMETER_REQUIRED, 'The module name'), new sfCommandOption('nb', null, sfCommandOption::PARAMETER_OPTIONAL, 'nb records to create', 20)));
        $this->namespace = 'dm';
        $this->name = 'loremize';
        $this->briefDescription = 'Create random records for a model';
        $this->detailedDescription = <<<EOF
Create random records for a model
EOF;
    }
示例#17
0
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->addOption('load-doctrine-data', 'l', sfCommandOption::PARAMETER_NONE, 'Run doctrine:data-load after loading basic data');
        $this->namespace = 'dm';
        $this->name = 'data';
        $this->briefDescription = 'Ensure required data';
        $this->detailedDescription = <<<EOF
Will provide Diem required data
EOF;
    }
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->addOptions(array(new sfCommandOption('clear', null, sfCommandOption::PARAMETER_REQUIRED, 'Clear and regenerate a module', null)));
        $this->namespace = 'dmAdmin';
        $this->name = 'generate';
        $this->briefDescription = 'Generates admin modules';
        $this->detailedDescription = <<<EOF
Will create non-existing admin modules
EOF;
    }
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'dm';
        $this->name = 'truncate-tables';
        $this->briefDescription = 'Will empty all tables';
        $this->detailedDescription = <<<EOF
The [dmDoctrineTruncateTablesTask|INFO] task does empty all tables.
Call it with:

  [php symfony dmDoctrineTruncateTablesTask|INFO]
EOF;
    }
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->addOptions(array(new sfCommandOption('clear-db', null, sfCommandOption::PARAMETER_NONE, 'Drop database ( all data will be lost )'), new sfCommandOption('clear-tables', null, sfCommandOption::PARAMETER_NONE, 'used in conjunction with --clear-db, it will drop tables instead of db'), new sfCommandOption('no-confirmation', null, sfCommandOption::PARAMETER_NONE, 'Whether to force dropping of the database'), new sfCommandOption('load-doctrine-data', 'd', sfCommandOption::PARAMETER_NONE, 'Run dm:data with -l option'), new sfCommandOption('dont-load-data', 'n', sfCommandOption::PARAMETER_NONE, 'Do not load data')));
        $this->namespace = 'dm';
        $this->name = 'setup';
        $this->briefDescription = 'Safely setup a project. Can be run several times without side effect.';
        $this->detailedDescription = <<<EOF
Will create symlinks in your web directory,
Build models, forms and filters,
Load data,
generate missing admin modules...
EOF;
    }
    protected function configure()
    {
        parent::configure();
        $this->addArguments(array(new sfCommandArgument('dir_or_file', sfCommandArgument::OPTIONAL | sfCommandArgument::IS_ARRAY, 'Directory or file to load')));
        $this->addOptions(array(new sfCommandOption('append', 'a', sfCommandOption::PARAMETER_NONE, 'Don\'t delete current data in the database'), new sfCommandOption('no-integrity', 'n', sfCommandOption::PARAMETER_NONE, 'Disable integrity checks')));
        $this->namespace = 'dm';
        $this->name = 'data-load';
        $this->briefDescription = '';
        $this->detailedDescription = <<<EOF
The [dmDoctrineDataLoad|INFO] task does load doctrine fixtures in the Diem context
Call it with:

  [php symfony dmDoctrineDataLoad|INFO]
EOF;
    }
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'dm';
        $this->name = 'sync-permissions';
        $this->briefDescription = 'Sync modules-actions & records permissions';
        $this->detailedDescription = <<<EOF
The [dmSyncPermissions|INFO] task creates and syncs module-actions 
credentials and records credentials.
It creates in DB necessary permissions for records, and links permissions with
users and groups as described in modules.yml for each modules
Call it with:

  [php symfony dmSyncPermissions|INFO]
EOF;
    }
示例#23
0
    /**
     * @see sfTask
     */
    protected function configure()
    {
        parent::configure();
        $this->addArguments(array(new sfCommandArgument('application', sfCommandArgument::REQUIRED, 'The application name'), new sfCommandArgument('culture', sfCommandArgument::REQUIRED, 'The target culture')));
        $this->addOptions(array(new sfCommandOption('display-new', null, sfCommandOption::PARAMETER_NONE, 'Output all new found strings'), new sfCommandOption('display-old', null, sfCommandOption::PARAMETER_NONE, 'Output all old strings'), new sfCommandOption('auto-save', null, sfCommandOption::PARAMETER_NONE, 'Save the new strings'), new sfCommandOption('auto-delete', null, sfCommandOption::PARAMETER_NONE, 'Delete old strings')));
        $this->namespace = 'dm';
        $this->name = 'i18n';
        $this->briefDescription = 'Extracts i18n strings from php files';
        $this->detailedDescription = <<<EOF
The [i18n:extract|INFO] task extracts i18n strings from your project files
for the given application and target culture:

  [./symfony i18n:extract frontend fr|INFO]

By default, the task only displays the number of new and old strings
it found in the current project.

If you want to display the new strings, use the [--display-new|COMMENT] option:

  [./symfony i18n:extract --display-new frontend fr|INFO]

To save them in the i18n message catalogue, use the [--auto-save|COMMENT] option:

  [./symfony i18n:extract --auto-save frontend fr|INFO]

If you want to display strings that are present in the i18n messages
catalogue but are not found in the application, use the 
[--display-old|COMMENT] option:

  [./symfony i18n:extract --display-old frontend fr|INFO]

To automatically delete old strings, use the [--auto-delete|COMMENT] but
be careful, especially if you have translations for plugins as they will
appear as old strings but they are not:

  [./symfony i18n:extract --auto-delete frontend fr|INFO]
EOF;
    }
 protected function exec($command)
 {
     return parent::exec(strtr($command, array('%demo_dir%' => $this->getDemoDir(), '%site_dir%' => sfConfig::get('sf_root_dir'), '%rsync_file%' => dirname(__FILE__) . '/demo_rsync_exclude.txt')));
 }