Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ProjectConfiguration extends sfProjectConfiguration
- {
- public function setup()
- {
- $this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions'));
- }
- /**
- * Filters command options.
- *
- * @param sfEvent $event
- * @param array $options
- *
- * @return array
- */
- public function filterCommandOptions(sfEvent $event, $options) {
- if ('sfDoctrineDropDbTask' === get_class($event->getSubject()))
- {
- $options = array('name_of_the_database_you_want_to_drop');
- }
- return $options;
- }
- }
Add Comment
Please, Sign In to add comment