public function __construct(Prototyped $subject)
 {
     $this->commandMap['import'] = 'doImport';
     $this->commandMap['drop'] = 'doDrop';
     $this->commandMap['save'] = 'doSave';
     $this->commandMap['edit'] = 'doEdit';
     $this->commandMap['add'] = 'doAdd';
     parent::__construct($subject);
 }
Esempio n. 2
0
 public function __construct(Prototyped $subject)
 {
     $this->commandMap['import'] = new ImportCommand();
     $this->commandMap['drop'] = new DropCommand();
     $this->commandMap['save'] = new SaveCommand();
     $this->commandMap['edit'] = new EditCommand();
     $this->commandMap['add'] = new AddCommand();
     parent::__construct($subject);
 }