diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/InstallCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/InstallCommand.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 8b702c95..85c4ee90 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -111,14 +111,17 @@ class InstallCommand extends ContainerAwareCommand | |||
111 | 111 | ||
112 | // user want to reset everything? Don't care about what is already here | 112 | // user want to reset everything? Don't care about what is already here |
113 | if (true === $this->defaultInput->getOption('reset')) { | 113 | if (true === $this->defaultInput->getOption('reset')) { |
114 | $this->defaultOutput->writeln('Droping database, creating database and schema'); | 114 | $this->defaultOutput->writeln('Droping database, creating database and schema, clearing the cache'); |
115 | 115 | ||
116 | $this | 116 | $this |
117 | ->runCommand('doctrine:database:drop', array('--force' => true)) | 117 | ->runCommand('doctrine:database:drop', array('--force' => true)) |
118 | ->runCommand('doctrine:database:create') | 118 | ->runCommand('doctrine:database:create') |
119 | ->runCommand('doctrine:schema:create') | 119 | ->runCommand('doctrine:schema:create') |
120 | ->runCommand('cache:clear') | ||
120 | ; | 121 | ; |
121 | 122 | ||
123 | $this->defaultOutput->writeln(''); | ||
124 | |||
122 | return $this; | 125 | return $this; |
123 | } | 126 | } |
124 | 127 | ||
@@ -131,6 +134,8 @@ class InstallCommand extends ContainerAwareCommand | |||
131 | ->runCommand('cache:clear') | 134 | ->runCommand('cache:clear') |
132 | ; | 135 | ; |
133 | 136 | ||
137 | $this->defaultOutput->writeln(''); | ||
138 | |||
134 | return $this; | 139 | return $this; |
135 | } | 140 | } |
136 | 141 | ||