SymfonyTemplate::getRecipe()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Initializer\Template;
9
10
/**
11
 * Generate a Symfony deployer configuration.
12
 *
13
 * @author Anton Medvedev <[email protected]>
14
 * @codeCoverageIgnore
15
 */
16
class SymfonyTemplate extends FrameworkTemplate
17
{
18
    protected function getRecipe()
19
    {
20
        return 'symfony';
21
    }
22
23
    /**
24
     * {@inheritDoc}
25
     */
26
    protected function getExtraContent()
27
    {
28
        return <<<PHP
29
30
// Migrate database before symlink new release.
31
32
before('deploy:symlink', 'database:migrate');
33
34
PHP;
35
    }
36
}
37