Guest User

Untitled

a guest
Jun 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. class ProjectConfiguration extends sfProjectConfiguration
  4. {
  5. public function setup()
  6. {
  7. $this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions'));
  8. }
  9.  
  10. /**
  11. * Filters command options.
  12. *
  13. * @param sfEvent $event
  14. * @param array $options
  15. *
  16. * @return array
  17. */
  18. public function filterCommandOptions(sfEvent $event, $options) {
  19.  
  20. if ('sfDoctrineDropDbTask' === get_class($event->getSubject()))
  21. {
  22. $options = array('name_of_the_database_you_want_to_drop');
  23. }
  24. return $options;
  25. }
  26. }
Add Comment
Please, Sign In to add comment