daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top