Exemple #1
0
 protected function configure()
 {
     $this->setName('acl2user:register')->setDescription('Register a user and creates his private group')->setHelp('')->addArgument('login', InputArgument::REQUIRED, 'the user login');
     parent::configure();
 }
Exemple #2
0
 protected function configure()
 {
     $this->setName('app:install')->setDescription('Execute install/update scripts from all activated modules')->setHelp('');
     parent::configure();
 }
Exemple #3
0
 protected function configure()
 {
     $this->setName('app:create-lang-package')->setDescription('Create properties file for a new lang, from locales stored in each modules, of a specific lang.')->setHelp('')->addArgument('lang', InputArgument::REQUIRED, 'the language code of the new lang')->addArgument('model_lang', InputArgument::OPTIONAL, 'The language code ')->addOption('to-overload', 'o', InputOption::VALUE_NONE, 'Indicate to store new locales into the var/overload/ dir instead of var/locales/');
     parent::configure();
 }
Exemple #4
0
 protected function configure()
 {
     $this->setName('acl2group:create')->setDescription('Create a new user group')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'the group id to create')->addArgument('name', InputArgument::OPTIONAL, 'the name of the group')->addOption('default', null, InputOption::VALUE_NONE, 'To set the new group as default group for new users');
     parent::configure();
 }
 protected function configure()
 {
     $this->setName('module:create-class-dao')->setDescription('Allow to create a class into classes directory from a *dao.xml file.')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'Name of the module')->addArgument('classname', InputArgument::REQUIRED, 'The name of the class to generate')->addArgument('daoname', InputArgument::REQUIRED, 'the name of the dao from which the class will be generated');
     parent::configure();
 }
Exemple #6
0
 protected function configure()
 {
     $this->setName('module:uninstall')->setDescription('Uninstall a module')->setHelp('if an entry point is indicated, the module is uninstalled only for this entry point.')->addArgument('module', InputArgument::REQUIRED, 'Name of the module to uninstall');
     parent::configure();
 }
 protected function configure()
 {
     $this->setName('acl2:sg-create')->setDescription('Add a subject group')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'Name of the subject group')->addArgument('labelkey', InputArgument::REQUIRED, 'the selector of the label')->addArgument('label', InputArgument::REQUIRED, 'The label of the subject group if the given selector does not exists');
     parent::configure();
 }
Exemple #8
0
 protected function configure()
 {
     $this->setName('acl2:subject-create')->setDescription('Create a subject')->setHelp('')->addArgument('subject', InputArgument::REQUIRED, 'the subject id to create')->addArgument('labelkey', InputArgument::REQUIRED, 'the selector of the label of the subject')->addArgument('subjectgroup', InputArgument::OPTIONAL, 'the id of the subjet group')->addArgument('subjectlabel', InputArgument::OPTIONAL, 'The label of the subject if the given selector does not exists');
     parent::configure();
 }
Exemple #9
0
 protected function configure()
 {
     $this->setName('acl2user:unregister')->setDescription('Unregister a user from rights system')->setHelp('')->addArgument('login', InputArgument::REQUIRED, 'the login of the user to remove')->addOption('confirm', null, InputOption::VALUE_NONE, 'Avoid to wait after user confirmation');
     parent::configure();
 }
Exemple #10
0
 protected function configure()
 {
     $this->setName('acl2:subject-delete')->setDescription('Delete a subject"')->setHelp('')->addArgument('subject', InputArgument::REQUIRED, 'the subject id to delete')->addOption('confirm', null, InputOption::VALUE_NONE, 'Avoid to wait after user confirmation');
     parent::configure();
 }
Exemple #11
0
 protected function configure()
 {
     $this->setName('module:create-form')->setDescription('Create a new jforms file, from a jdao file')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'Name of the module where to create the dao')->addArgument('form', InputArgument::REQUIRED, 'the name of the form')->addArgument('dao', InputArgument::OPTIONAL, 'selector of the dao on which the form will be based. If not given, the jforms file will be empty.')->addOption('createlocales', null, InputOption::VALUE_NONE, 'creates the locales file for labels of the form')->addOption('usecomments', null, InputOption::VALUE_NONE, 'it will use DAO\'s property comments like form\'s labels');
     parent::configure();
 }
Exemple #12
0
 protected function configure()
 {
     $this->setName('module:create-ctrl')->setDescription('Create a new controller, either a jController or jControllerCmdLine')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'module name where to create the controller')->addArgument('controller', InputArgument::REQUIRED, 'name of your new controller')->addArgument('method', InputArgument::OPTIONAL, 'name of the first method (\'index\' by default)', 'index')->addOption('cmdline', null, InputOption::VALUE_NONE, 'To create a controller for a command line script')->addOption('addinstallzone', null, InputOption::VALUE_NONE, 'Add the check_install zone for new application.');
     parent::configure();
 }
Exemple #13
0
 protected function configure()
 {
     $this->setName('module:create-dao-crud')->setDescription('Create a new controller jControllerDaoCrud')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'Name of the module')->addArgument('table', InputArgument::REQUIRED, 'name of the main table on which the dao is mapped')->addArgument('ctrlname', InputArgument::OPTIONAL, 'name of the controller')->addOption('profile', null, InputOption::VALUE_REQUIRED, 'indicate the name of the profile to use for the database connection', '')->addOption('createlocales', null, InputOption::VALUE_NONE, 'creates the locales file for labels of the form')->addOption('acl2', null, InputOption::VALUE_NONE, 'automatically generate ACL2 rights (list, view, create, modify, delete)')->addOption('acl2locale', null, InputOption::VALUE_REQUIRED, 'indicates the selector prefix for the file storing the locales of rights, when -acl2 is set', '')->addOption('masteradmin', null, InputOption::VALUE_NONE, 'add an event listener to add a menu item in master_admin');
     parent::configure();
 }
Exemple #14
0
 protected function configure()
 {
     $this->setName('acl2group:list')->setDescription('Shows list of users groups')->setHelp('');
     parent::configure();
 }
Exemple #15
0
 protected function configure()
 {
     $this->setName('acl2:sg-list')->setDescription('List of subject groups')->setHelp('');
     parent::configure();
 }
Exemple #16
0
 protected function configure()
 {
     $this->setName('module:create')->setDescription('Create a new module, with all necessary files and sub-directories')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'Name of the new module')->addArgument('repository', InputArgument::OPTIONAL, 'The path of the directory where to create the module. You can use shortcut like app:, lib: etc.', 'app:modules/')->addOption('nosubdir', null, InputOption::VALUE_NONE, 'don\'t create sub-directories')->addOption('nocontroller', null, InputOption::VALUE_NONE, 'don\'t create a default controller')->addOption('cmdline', null, InputOption::VALUE_NONE, 'To create a controller for a command line script')->addOption('addinstallzone', null, InputOption::VALUE_NONE, 'Add the check_install zone for new application.')->addOption('defaultmodule', null, InputOption::VALUE_NONE, 'the new module become the default module for the default entry point.')->addOption('admin', null, InputOption::VALUE_NONE, 'the new module will be used with master_admin. Install additionnal file and set additionnal configuration stuff')->addOption('ver', null, InputOption::VALUE_REQUIRED, 'indicates the initial version of the module', '0.1pre')->addOption('noregistration', null, InputOption::VALUE_NONE, 'Do not register the module in the application configuration');
     parent::configure();
 }
Exemple #17
0
 protected function configure()
 {
     $this->setName('acl2:list')->setDescription('Show the list of rights')->setHelp('');
     parent::configure();
 }
Exemple #18
0
 protected function configure()
 {
     $this->setName('module:install')->setDescription('Install or upgrade a module even if it is not activated.')->setHelp('if an entry point is indicated, the module is installed only for this entry point.')->addArgument('module', InputArgument::REQUIRED, 'Name of the module to install/upgrade')->addOption('parameters', 'p', InputOption::VALUE_REQUIRED, 'parameters for the installer of the module: -p "param1;param2=value;..."');
     parent::configure();
 }
Exemple #19
0
 protected function configure()
 {
     $this->setName('module:create-zone')->setDescription('Create a new zone')->setHelp('')->addArgument('module', InputArgument::REQUIRED, 'Name of the module where to create the zone')->addArgument('zone', InputArgument::REQUIRED, 'the name of the zone')->addArgument('template', InputArgument::OPTIONAL, 'name of the template created with the zone (by default, the template name is the zone name)')->addOption('notpl', null, InputOption::VALUE_NONE, 'no template is created.');
     parent::configure();
 }
Exemple #20
0
 protected function configure()
 {
     $this->setName('module:create-dao')->setDescription('Create a new dao file')->setHelp('If the table name is not provided, the DAO name will be used as table name. You must provide a table name to indicate a sequence.')->addArgument('module', InputArgument::REQUIRED, 'Name of the module where to create the dao')->addArgument('daoname', InputArgument::REQUIRED, 'the name of the dao to create')->addArgument('table', InputArgument::OPTIONAL, 'name of the main table on which the dao is mapped. You cannot indicate multiple tables')->addArgument('sequence', InputArgument::OPTIONAL, 'name of the sequence used to auto increment the primary key')->addOption('profile', null, InputOption::VALUE_REQUIRED, 'indicate the name of the profile to use for the database connection', '')->addOption('empty', null, InputOption::VALUE_NONE, 'just create an empty dao file (it doesn\'t connect to the database)');
     parent::configure();
 }
Exemple #21
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->loadAppConfig();
     return $this->_execute($input, $output);
 }