Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * This file is part of the OpenPNE package. |
---|
5 | * (c) OpenPNE Project (http://www.openpne.jp/) |
---|
6 | * |
---|
7 | * For the full copyright and license information, please view the LICENSE |
---|
8 | * file and the NOTICE file that were distributed with this source code. |
---|
9 | */ |
---|
10 | |
---|
11 | class openpneUpgradeFrom2Task extends sfDoctrineBaseTask |
---|
12 | { |
---|
13 | protected function configure() |
---|
14 | { |
---|
15 | $this->namespace = 'openpne'; |
---|
16 | $this->name = 'upgrade-from-2'; |
---|
17 | $this->briefDescription = 'Upgrade from OpenPNE 2.x'; |
---|
18 | $this->detailedDescription = <<<EOF |
---|
19 | The [openpne:upgrade-from-2|INFO] task does things. |
---|
20 | Call it with: |
---|
21 | |
---|
22 | [php symfony openpne:upgrade-from-2|INFO] |
---|
23 | EOF; |
---|
24 | } |
---|
25 | |
---|
26 | protected function execute($arguments = array(), $options = array()) |
---|
27 | { |
---|
28 | $databaseManager = new sfDatabaseManager($this->configuration); |
---|
29 | $connection = $databaseManager->getDatabase($options['connection'] ? $options['connection'] : null)->getConnection(); |
---|
30 | } |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.