Created
July 25, 2011 10:58
-
-
Save nqbao/1103906 to your computer and use it in GitHub Desktop.
Run a command programmtically in Symfony 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$drop = $this->getApplication()->get("doctrine:database:drop"); | |
$dropInput = new ArrayInput(array('--force' => '1'), $drop->getDefinition()); | |
$drop->execute($dropInput, $output); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment